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 values-
Methods 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
-
-
-
-
Method Detail
-
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
public Diff<V> diff(V value, V beforePart)
Description copied from interface:DiffableUtils.ValueSerializerComputes diff if this serializer supports diffable values
-
write
public void write(V value, StreamOutput out) throws java.io.IOException
Description copied from interface:DiffableUtils.ValueSerializerWrites value to stream
-
writeDiff
public void writeDiff(Diff<V> value, StreamOutput out) throws java.io.IOException
Description copied from interface:DiffableUtils.ValueSerializerWrites value as diff to stream if this serializer supports diffable values
-
-