Package org.elasticsearch.cluster
Class DiffableUtils.DiffableValueSerializer<K,V extends Diffable<V>>
java.lang.Object
org.elasticsearch.cluster.DiffableUtils.DiffableValueSerializer<K,V>
- Type Parameters:
K
- type of map keysV
- type of map values
- All Implemented Interfaces:
DiffableUtils.ValueSerializer<K,
V>
- Direct Known Subclasses:
DiffableUtils.DiffableValueReader
,NamedDiffableValueSerializer
- Enclosing class:
- DiffableUtils
public abstract static class DiffableUtils.DiffableValueSerializer<K,V extends Diffable<V>>
extends Object
implements DiffableUtils.ValueSerializer<K,V>
Serializer for Diffable map values. Needs to implement read and readDiff methods.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionComputes diff if this serializer supports diffable valuesboolean
Whether this serializer supports diffable valuesvoid
write
(V value, StreamOutput out) Writes value to streamvoid
writeDiff
(Diff<V> value, StreamOutput out) Writes value as diff to stream if this serializer supports diffable valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.cluster.DiffableUtils.ValueSerializer
read, readDiff, supportsVersion, supportsVersion
-
Constructor Details
-
DiffableValueSerializer
public DiffableValueSerializer()
-
-
Method Details
-
supportsDiffableValues
public boolean supportsDiffableValues()Description copied from interface:DiffableUtils.ValueSerializer
Whether this serializer supports diffable values- Specified by:
supportsDiffableValues
in interfaceDiffableUtils.ValueSerializer<K,
V extends Diffable<V>>
-
diff
Description copied from interface:DiffableUtils.ValueSerializer
Computes diff if this serializer supports diffable values -
write
Description copied from interface:DiffableUtils.ValueSerializer
Writes value to stream- Specified by:
write
in interfaceDiffableUtils.ValueSerializer<K,
V extends Diffable<V>> - Throws:
IOException
-
writeDiff
Description copied from interface:DiffableUtils.ValueSerializer
Writes value as diff to stream if this serializer supports diffable values- Specified by:
writeDiff
in interfaceDiffableUtils.ValueSerializer<K,
V extends Diffable<V>> - Throws:
IOException
-