public class ReleasablePagedBytesReference extends PagedBytesReference implements ReleasableBytesReference
PagedBytesReference
that requires releasing its content. This
class exists to make it explicit when a bytes reference needs to be released, and when not.BytesReference.Helper
bytearray
Constructor and Description |
---|
ReleasablePagedBytesReference(BigArrays bigarrays,
ByteArray bytearray,
int length) |
ReleasablePagedBytesReference(BigArrays bigarrays,
ByteArray bytearray,
int from,
int length) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
array, arrayOffset, copyBytesArray, copyBytesRef, equals, get, hasArray, hashCode, length, slice, streamInput, toBytes, toBytesArray, toBytesRef, toChannelBuffer, toUtf8, writeTo, writeTo
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
array, arrayOffset, copyBytesArray, copyBytesRef, get, hasArray, length, slice, streamInput, toBytes, toBytesArray, toBytesRef, toChannelBuffer, toUtf8, writeTo, writeTo
public ReleasablePagedBytesReference(BigArrays bigarrays, ByteArray bytearray, int length)
public void close() throws ElasticsearchException
close
in interface AutoCloseable
close
in interface Releasable
ElasticsearchException
Copyright © 2009–2015. All rights reserved.