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, writeDiff
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