Class NamedDiffableValueSerializer<T extends NamedDiffable<T>>

,​T>
org.elasticsearch.cluster.NamedDiffableValueSerializer<T>
All Implemented Interfaces:
,​T>

public class NamedDiffableValueSerializer<T extends NamedDiffable<T>> extends ,​T>
Value Serializer for named diffables
  • Constructor Details

    • NamedDiffableValueSerializer

      public NamedDiffableValueSerializer(<T> tClass)
  • Method Details

    • read

      public T read(StreamInput in,  key) throws
      Description copied from interface: DiffableUtils.ValueSerializer
      Reads value from stream. Reading operation can be made dependent on map key.
      Throws:
    • supportsVersion

      public boolean supportsVersion(Diff<T> value, Version version)
      Description copied from interface: DiffableUtils.ValueSerializer
      Whether this serializer supports the version of the output stream
    • supportsVersion

      public boolean supportsVersion(T value, Version version)
      Description copied from interface: DiffableUtils.ValueSerializer
      Whether this serializer supports the version of the output stream
    • readDiff

      public Diff<T> readDiff(StreamInput in,  key) throws
      Description copied from interface: DiffableUtils.ValueSerializer
      Reads value as diff from stream if this serializer supports diffable values. Reading operation can be made dependent on map key.
      Throws: