Class DiffableUtils.DiffableValueReader<K,V extends Diffable<V>>

java.lang.Object
org.opensearch.cluster.DiffableUtils.DiffableValueSerializer<K,V>
org.opensearch.cluster.DiffableUtils.DiffableValueReader<K,V>
All Implemented Interfaces:
DiffableUtils.ValueSerializer<K,V>
Enclosing class:
DiffableUtils

public static class DiffableUtils.DiffableValueReader<K,V extends Diffable<V>> extends DiffableUtils.DiffableValueSerializer<K,V>
Implementation of the ValueSerializer that wraps value and diff readers.

Note: this implementation is ignoring the key.

Opensearch.internal:
  • Constructor Details

    • DiffableValueReader

      public DiffableValueReader(org.opensearch.core.common.io.stream.Writeable.Reader<V> reader, org.opensearch.core.common.io.stream.Writeable.Reader<Diff<V>> diffReader)
  • Method Details

    • read

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

      public Diff<V> readDiff(org.opensearch.core.common.io.stream.StreamInput in, K 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