DiffableUtils.ValueSerializer<K,V>public static class DiffableUtils.DiffableValueReader<K,V extends Diffable<V>> extends DiffableUtils.DiffableValueSerializer<K,V>
| Constructor | Description |
|---|---|
DiffableValueReader(Writeable.Reader<V> reader,
Writeable.Reader<Diff<V>> diffReader) |
| Modifier and Type | Method | 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, writeDiffsupportsVersion, 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