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 AWriteableobject identified by its name.Streamable Implementers can be written to a StreamOutput and read from a StreamInput.VersionedNamedWriteable ANamedWriteablethat 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 @linkStreamOutputthat usesBigArraysto acquire pages of bytes, which avoids frequent reallocation & copying of the internal data.DataOutputStreamOutput FilterStreamInput Wraps aStreamInputand delegates to it.InputStreamStreamInput NamedWriteableAwareStreamInput Wraps aStreamInputand associates it with aNamedWriteableRegistryNamedWriteableRegistry A registry forWriteable.Readerreaders 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 aBigArraysinstance 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).