Class RecyclerBytesStreamOutput

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, org.elasticsearch.core.Releasable

public class RecyclerBytesStreamOutput extends BytesStream implements org.elasticsearch.core.Releasable
A @link StreamOutput that uses Recycler.V<org.apache.lucene.util.BytesRef> to acquire pages of bytes, which avoids frequent reallocation & copying of the internal data. When close() is called, the bytes will be released.