public static class DiffableUtils.DiffableValueReader<K,V extends Diffable<V>> extends DiffableUtils.DiffableValueSerializer<K,V>
Constructor and Description |
---|
DiffableValueReader(Writeable.Reader<V> reader,
Writeable.Reader<Diff<V>> diffReader) |
Modifier and Type | Method and Description |
---|---|
V |
read(StreamInput in,
K key)
Reads value from stream.
|
Diff<V> |
readDiff(StreamInput in,
K key)
Reads value as diff from stream if this serializer supports diffable values.
|
diff, supportsDiffableValues, write, writeDiff
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportsVersion, supportsVersion
public DiffableValueReader(Writeable.Reader<V> reader, Writeable.Reader<Diff<V>> diffReader)
public V read(StreamInput in, K key) throws java.io.IOException
DiffableUtils.ValueSerializer
java.io.IOException
public Diff<V> readDiff(StreamInput in, K key) throws java.io.IOException
DiffableUtils.ValueSerializer
java.io.IOException