Package org.elasticsearch.cluster
Class DiffableUtils.DiffableValueSerializer<K,V extends Diffable<V>>
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
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.
, , , , , , , , , ,
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 -
writeDiff
Description copied from interface:DiffableUtils.ValueSerializer
Writes value as diff to stream if this serializer supports diffable values
-