public class PagedBytesReference extends BytesReference
Constructor and Description |
---|
PagedBytesReference(BigArrays bigarrays,
ByteArray byteArray,
int length) |
PagedBytesReference(BigArrays bigarrays,
ByteArray byteArray,
int from,
int length) |
Modifier and Type | Method and Description |
---|---|
byte |
get(int index)
Returns the byte at the specified index.
|
org.apache.lucene.util.BytesRefIterator |
iterator()
Returns a BytesRefIterator for this BytesReference.
|
int |
length()
The length.
|
long |
ramBytesUsed() |
BytesReference |
slice(int from,
int length)
Slice the bytes from the from index up to length.
|
org.apache.lucene.util.BytesRef |
toBytesRef()
Converts to Lucene BytesRef.
|
compareTo, equals, hashCode, streamInput, toBytes, utf8ToString, writeTo
protected final ByteArray byteArray
public PagedBytesReference(BigArrays bigarrays, ByteArray byteArray, int length)
public byte get(int index)
BytesReference
get
in class BytesReference
public int length()
BytesReference
length
in class BytesReference
public BytesReference slice(int from, int length)
BytesReference
slice
in class BytesReference
public org.apache.lucene.util.BytesRef toBytesRef()
BytesReference
toBytesRef
in class BytesReference
public final org.apache.lucene.util.BytesRefIterator iterator()
BytesReference
iterator
in class BytesReference
BytesRefIterator
public long ramBytesUsed()