Module org.elasticsearch.server
Package org.elasticsearch.cluster
Class NamedDiffableValueSerializer<T extends NamedDiffable<T>>
java.lang.Object
org.elasticsearch.cluster.DiffableUtils.DiffableValueSerializer<String,T>
org.elasticsearch.cluster.NamedDiffableValueSerializer<T>
- All Implemented Interfaces:
DiffableUtils.ValueSerializer<String,T>
public class NamedDiffableValueSerializer<T extends NamedDiffable<T>>
extends DiffableUtils.DiffableValueSerializer<String,T>
Value Serializer for named diffables
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(StreamInput in, String key) Reads value from stream.readDiff(StreamInput in, String key) Reads value as diff from stream if this serializer supports diffable values.booleansupportsVersion(Diff<T> value, TransportVersion version) Whether this serializer supports the version of the output streambooleansupportsVersion(T value, TransportVersion version) Whether this serializer supports the version of the output streamMethods inherited from class org.elasticsearch.cluster.DiffableUtils.DiffableValueSerializer
diff, supportsDiffableValues, write, writeDiff
-
Constructor Details
-
NamedDiffableValueSerializer
-
-
Method Details
-
read
Description copied from interface:DiffableUtils.ValueSerializerReads value from stream. Reading operation can be made dependent on map key.- Throws:
IOException
-
supportsVersion
Description copied from interface:DiffableUtils.ValueSerializerWhether this serializer supports the version of the output stream -
supportsVersion
Description copied from interface:DiffableUtils.ValueSerializerWhether this serializer supports the version of the output stream -
readDiff
Description copied from interface:DiffableUtils.ValueSerializerReads value as diff from stream if this serializer supports diffable values. Reading operation can be made dependent on map key.- Throws:
IOException
-