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
All Methods Instance Methods Concrete Methods 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.boolean
supportsDiffableValues()
Whether this serializer supports diffable valuesvoid
writeDiff(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.ValueSerializer
Whether this serializer supports diffable values- Specified by:
supportsDiffableValues
in interfaceDiffableUtils.ValueSerializer<K,V>
-
diff
public Diff<V> diff(V value, V beforePart)
Description copied from interface:DiffableUtils.ValueSerializer
Computes diff if this serializer supports diffable values- Specified by:
diff
in interfaceDiffableUtils.ValueSerializer<K,V>
-
writeDiff
public void writeDiff(Diff<V> value, StreamOutput out) throws java.io.IOException
Description copied from interface:DiffableUtils.ValueSerializer
Writes value as diff to stream if this serializer supports diffable values- Specified by:
writeDiff
in 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.ValueSerializer
Reads value as diff from stream if this serializer supports diffable values. Reading operation can be made dependent on map key.- Specified by:
readDiff
in interfaceDiffableUtils.ValueSerializer<K,V>
- Throws:
java.io.IOException
-
-