Class NamedDiffableValueSerializer<T extends NamedDiffable<T>>

java.lang.Object
org.opensearch.cluster.DiffableUtils.DiffableValueSerializer<String,T>
org.opensearch.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
Opensearch.internal:
  • Constructor Details

    • NamedDiffableValueSerializer

      public NamedDiffableValueSerializer(Class<T> tClass)
  • Method Details

    • read

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

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

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

      public Diff<T> readDiff(org.opensearch.core.common.io.stream.StreamInput in, String key) throws IOException
      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:
      IOException