DiffableUtils.ValueSerializer<java.lang.String,T>
public class NamedDiffableValueSerializer<T extends NamedDiffable<T>> extends DiffableUtils.DiffableValueSerializer<java.lang.String,T>
Constructor | Description |
---|---|
NamedDiffableValueSerializer(java.lang.Class<T> tClass) |
Modifier and Type | Method | Description |
---|---|---|
T |
read(StreamInput in,
java.lang.String key) |
Reads value from stream.
|
Diff<T> |
readDiff(StreamInput in,
java.lang.String key) |
Reads value as diff from stream if this serializer supports diffable values.
|
boolean |
supportsVersion(Diff<T> value,
Version version) |
Whether this serializer supports the version of the output stream
|
boolean |
supportsVersion(T value,
Version version) |
Whether this serializer supports the version of the output stream
|
diff, supportsDiffableValues, write, writeDiff
public NamedDiffableValueSerializer(java.lang.Class<T> tClass)
public T read(StreamInput in, java.lang.String key) throws java.io.IOException
DiffableUtils.ValueSerializer
java.io.IOException
public boolean supportsVersion(Diff<T> value, Version version)
DiffableUtils.ValueSerializer
public boolean supportsVersion(T value, Version version)
DiffableUtils.ValueSerializer
public Diff<T> readDiff(StreamInput in, java.lang.String key) throws java.io.IOException
DiffableUtils.ValueSerializer
java.io.IOException