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 Object
implements DiffableUtils.ValueSerializer<K,V>
Serializer for non-diffable map values
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionComputes diff if this serializer supports diffable valuesreadDiff(StreamInput in, K key)Reads value as diff from stream if this serializer supports diffable values.booleanWhether this serializer supports diffable valuesvoidwriteDiff(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, supportsVersion, supportsVersion, write
-
Constructor Details
-
NonDiffableValueSerializer
public NonDiffableValueSerializer()
-
-
Method Details
-
supportsDiffableValues
public boolean supportsDiffableValues()Description copied from interface:DiffableUtils.ValueSerializerWhether this serializer supports diffable values- Specified by:
supportsDiffableValuesin interfaceDiffableUtils.ValueSerializer<K,V>
-
diff
Description copied from interface:DiffableUtils.ValueSerializerComputes diff if this serializer supports diffable values- Specified by:
diffin interfaceDiffableUtils.ValueSerializer<K,V>
-
writeDiff
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:
IOException
-
readDiff
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:
IOException
-