Package org.elasticsearch.cluster
Class DiffableUtils.NonDiffableValueSerializer<K,V>
- java.lang.Object
-
- org.elasticsearch.cluster.DiffableUtils.NonDiffableValueSerializer<K,V>
-
- Type Parameters:
K- type of map keysV- type of map values
- All Implemented Interfaces:
DiffableUtils.ValueSerializer<K,V>
- Direct Known Subclasses:
DiffableUtils.StringSetValueSerializer
- Enclosing class:
- DiffableUtils
public abstract static class DiffableUtils.NonDiffableValueSerializer<K,V> extends java.lang.Object implements DiffableUtils.ValueSerializer<K,V>
Serializer for non-diffable map values
-
-
Constructor Summary
Constructors Constructor Description NonDiffableValueSerializer()
-
Method Summary
Modifier and Type Method Description Diff<V>diff(V value, V beforePart)Computes diff if this serializer supports diffable valuesDiff<V>readDiff(StreamInput in, K key)Reads value as diff from stream if this serializer supports diffable values.booleansupportsDiffableValues()Whether this serializer supports diffable valuesvoidwriteDiff(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, supportsVersion, supportsVersion, write
-
-
-
-
Method Detail
-
supportsDiffableValues
public boolean supportsDiffableValues()
Description copied from interface:DiffableUtils.ValueSerializerWhether this serializer supports diffable values- Specified by:
supportsDiffableValuesin interfaceDiffableUtils.ValueSerializer<K,V>
-
diff
public Diff<V> diff(V value, V beforePart)
Description copied from interface:DiffableUtils.ValueSerializerComputes diff if this serializer supports diffable values- Specified by:
diffin interfaceDiffableUtils.ValueSerializer<K,V>
-
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- Specified by:
writeDiffin interfaceDiffableUtils.ValueSerializer<K,V>- Throws:
java.io.IOException
-
readDiff
public Diff<V> readDiff(StreamInput in, K key) throws java.io.IOException
Description copied from interface:DiffableUtils.ValueSerializerReads value as diff from stream if this serializer supports diffable values. Reading operation can be made dependent on map key.- Specified by:
readDiffin interfaceDiffableUtils.ValueSerializer<K,V>- Throws:
java.io.IOException
-
-