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, writeDiffclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsVersion, supportsVersionpublic DiffableValueReader(Writeable.Reader<V> reader, Writeable.Reader<Diff<V>> diffReader)
public V read(StreamInput in, K key) throws java.io.IOException
DiffableUtils.ValueSerializerjava.io.IOExceptionpublic Diff<V> readDiff(StreamInput in, K key) throws java.io.IOException
DiffableUtils.ValueSerializerjava.io.IOException