public final class ReleasablePagedBytesReference extends PagedBytesReference implements Releasable
PagedBytesReference that requires releasing its content. This
class exists to make it explicit when a bytes reference needs to be released, and when not.byteArray| Constructor and Description |
|---|
ReleasablePagedBytesReference(BigArrays bigarrays,
ByteArray byteArray,
int length,
Releasable releasable) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
get, iterator, length, ramBytesUsed, slice, toBytesRefcompareTo, equals, hashCode, streamInput, toBytes, utf8ToString, writeTopublic ReleasablePagedBytesReference(BigArrays bigarrays, ByteArray byteArray, int length, Releasable releasable)
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface Releasable