Package org.opensearch.common.io.stream


package org.opensearch.common.io.stream
Classes for streaming objects from one OpenSearch node to another over its binary internode protocol.
  • Classes
    Class
    Description
    A @link StreamOutput that uses BigArrays to acquire pages of bytes, which avoids frequent reallocation & copying of the internal data.
    DelayableWriteable<T extends org.opensearch.core.common.io.stream.Writeable>
    A holder for Writeables that delays reading the underlying object on the receiving end.
    DelayableWriteable.Serialized<T extends org.opensearch.core.common.io.stream.Writeable>
    A Writeable stored in serialized form.
    An bytes stream output that allows providing a BigArrays instance expecting it to require releasing its content (BytesStreamOutput.bytes()) once done.
    This utility class registers generic types for streaming over the wire using StreamOutput.writeGenericValue(Object) and StreamInput.readGenericValue() In this manner we can register any type across OpenSearch modules, plugins, or libraries without requiring the implementation reside in the server module.