Package org.elasticsearch.cluster
Class DiffableUtils.NonDiffableValueSerializer<K,V>
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
implements DiffableUtils.ValueSerializer<K,V>
Serializer for non-diffable map values
-
Constructor Summary
-
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.boolean
Whether this serializer supports diffable valuesvoid
writeDiff(Diff<V> value, StreamOutput out)
Writes value as diff to stream if this serializer supports diffable valuesMethods inherited from class java.lang.
, , , , , , , , , ,
Methods 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.ValueSerializer
Whether this serializer supports diffable values- Specified by:
supportsDiffableValues
in interfaceDiffableUtils.ValueSerializer<K,V>
-
diff
Description copied from interface:DiffableUtils.ValueSerializer
Computes diff if this serializer supports diffable values- Specified by:
diff
in interfaceDiffableUtils.ValueSerializer<K,V>
-
writeDiff
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:
-
readDiff
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:
-