Package org.elasticsearch.common.io.stream
Classes for streaming objects from one Elasticsearch node to another over its binary internode protocol.
-
Interface Summary Interface Description NamedWriteable AWriteable
object identified by its name.Streamable Implementers can be written to a StreamOutput and read from a StreamInput.VersionedNamedWriteable ANamedWriteable
that has a minimum version associated with it.Writeable Implementers can be written to a StreamOutput and read from a StreamInput.Writeable.Reader<V> Reference to a method that can read some object from a stream.Writeable.Writer<V> Reference to a method that can write some object to aStreamOutput
. -
Class Summary Class Description ByteBufferStreamInput BytesStream BytesStreamOutput A @linkStreamOutput
that usesBigArrays
to acquire pages of bytes, which avoids frequent reallocation & copying of the internal data.DataOutputStreamOutput FilterStreamInput Wraps aStreamInput
and delegates to it.InputStreamStreamInput NamedWriteableAwareStreamInput Wraps aStreamInput
and associates it with aNamedWriteableRegistry
NamedWriteableRegistry A registry forWriteable.Reader
readers ofNamedWriteable
.NamedWriteableRegistry.Entry An entry in the registry, made up of a category class and name, and a reader for that category class.OutputStreamStreamOutput ReleasableBytesStreamOutput An bytes stream output that allows providing aBigArrays
instance expecting it to require releasing its content (ReleasableBytesStreamOutput.bytes()
) once done.StreamInput A stream from this node to another node.StreamOutput A stream from another node to this node. -
Exception Summary Exception Description NotSerializableExceptionWrapper This exception can be used to wrap a given, not serializable exception to serialize viaStreamOutput.writeException(Throwable)
.