Package org.opensearch.cluster
Class DiffableUtils.DiffableValueReader<K,V extends Diffable<V>>
java.lang.Object
org.opensearch.cluster.DiffableUtils.DiffableValueSerializer<K,V>
org.opensearch.cluster.DiffableUtils.DiffableValueReader<K,V>
- All Implemented Interfaces:
DiffableUtils.ValueSerializer<K,
V>
- Enclosing class:
DiffableUtils
public static class DiffableUtils.DiffableValueReader<K,V extends Diffable<V>>
extends DiffableUtils.DiffableValueSerializer<K,V>
Implementation of the ValueSerializer that wraps value and diff readers.
Note: this implementation is ignoring the key.
- Opensearch.internal:
-
Constructor Summary
ConstructorsConstructorDescriptionDiffableValueReader
(org.opensearch.core.common.io.stream.Writeable.Reader<V> reader, org.opensearch.core.common.io.stream.Writeable.Reader<Diff<V>> diffReader) -
Method Summary
Methods inherited from class org.opensearch.cluster.DiffableUtils.DiffableValueSerializer
diff, supportsDiffableValues, write, writeDiff
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensearch.cluster.DiffableUtils.ValueSerializer
supportsVersion, supportsVersion
-
Constructor Details
-
DiffableValueReader
-
-
Method Details
-
read
Description copied from interface:DiffableUtils.ValueSerializer
Reads value from stream. Reading operation can be made dependent on map key.- Throws:
IOException
-
readDiff
public Diff<V> readDiff(org.opensearch.core.common.io.stream.StreamInput in, K key) throws 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.- Throws:
IOException
-