K
- key type of mapV
- value type of mapDiffableUtils.DiffableValueReader
, DiffableUtils.DiffableValueSerializer
, DiffableUtils.NonDiffableValueSerializer
, DiffableUtils.StringSetValueSerializer
, NamedDiffableValueSerializer
public static interface DiffableUtils.ValueSerializer<K,V>
DiffableUtils.DiffableValueSerializer
or DiffableUtils.NonDiffableValueSerializer
.Modifier and Type | Method | Description |
---|---|---|
Diff<V> |
diff(V value,
V beforePart) |
Computes diff if this serializer supports diffable values
|
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.
|
boolean |
supportsDiffableValues() |
Whether this serializer supports diffable values
|
default boolean |
supportsVersion(Diff<V> value,
Version version) |
Whether this serializer supports the version of the output stream
|
default boolean |
supportsVersion(V value,
Version version) |
Whether this serializer supports the version of the output stream
|
void |
write(V value,
StreamOutput out) |
Writes value to stream
|
void |
writeDiff(Diff<V> value,
StreamOutput out) |
Writes value as diff to stream if this serializer supports diffable values
|
void write(V value, StreamOutput out) throws java.io.IOException
java.io.IOException
V read(StreamInput in, K key) throws java.io.IOException
java.io.IOException
boolean supportsDiffableValues()
default boolean supportsVersion(Diff<V> value, Version version)
default boolean supportsVersion(V value, Version version)
void writeDiff(Diff<V> value, StreamOutput out) throws java.io.IOException
java.io.IOException
Diff<V> readDiff(StreamInput in, K key) throws java.io.IOException
java.io.IOException