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.Helperbytearray| Constructor and Description |
|---|
ReleasablePagedBytesReference(org.elasticsearch.common.util.BigArrays bigarrays,
org.elasticsearch.common.util.ByteArray bytearray,
int length) |
ReleasablePagedBytesReference(org.elasticsearch.common.util.BigArrays bigarrays,
org.elasticsearch.common.util.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, writeToclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitarray, arrayOffset, copyBytesArray, copyBytesRef, get, hasArray, length, slice, streamInput, toBytes, toBytesArray, toBytesRef, toChannelBuffer, toUtf8, writeTo, writeTopublic ReleasablePagedBytesReference(org.elasticsearch.common.util.BigArrays bigarrays, org.elasticsearch.common.util.ByteArray bytearray, int length)
public ReleasablePagedBytesReference(org.elasticsearch.common.util.BigArrays bigarrays, org.elasticsearch.common.util.ByteArray bytearray, int from, int length)
public void close() throws org.elasticsearch.ElasticsearchException
close in interface AutoCloseableclose in interface org.elasticsearch.common.lease.Releasableorg.elasticsearch.ElasticsearchExceptionCopyright © 2012–2014. All rights reserved.