public static class DiffableUtils.DiffablePrototypeValueReader<K,V extends Diffable<V>> extends DiffableUtils.DiffableValueSerializer<K,V>
Constructor and Description |
---|
DiffablePrototypeValueReader(V proto) |
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
public DiffablePrototypeValueReader(V proto)
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