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.
-
ClassDescriptionA @link
StreamOutput
that usesBigArrays
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 forWriteable
s that delays reading the underlying object on the receiving end.DelayableWriteable.Serialized<T extends org.opensearch.core.common.io.stream.Writeable>AWriteable
stored in serialized form.An bytes stream output that allows providing aBigArrays
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.