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 java.lang.Object implements DiffableUtils.ValueSerializer<K,V>
Serializer for Diffable map values. Needs to implement read and readDiff methods.
-
Constructor Summary
Constructors Constructor Description DiffableValueSerializer() -
Method Summary
Modifier and Type Method Description Diff<V>diff(V value, V beforePart)Computes diff if this serializer supports diffable valuesbooleansupportsDiffableValues()Whether this serializer supports diffable valuesvoidwrite(V value, StreamOutput out)Writes value to streamvoidwriteDiff(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, waitMethods 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.ValueSerializerWhether this serializer supports diffable values- Specified by:
supportsDiffableValuesin interfaceDiffableUtils.ValueSerializer<K,V extends Diffable<V>>
-
diff
Description copied from interface:DiffableUtils.ValueSerializerComputes diff if this serializer supports diffable values -
write
Description copied from interface:DiffableUtils.ValueSerializerWrites value to stream -
writeDiff
Description copied from interface:DiffableUtils.ValueSerializerWrites value as diff to stream if this serializer supports diffable values
-