|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.util.PagedBytes.Reader
public static final class PagedBytes.Reader
Provides methods to read BytesRefs from a frozen PagedBytes.
PagedBytes.freeze(boolean)
Method Summary | |
---|---|
void |
fill(BytesRef b,
long start)
Reads length as 1 or 2 byte vInt prefix, starting at start. |
void |
fillSlice(BytesRef b,
long start,
int length)
Gets a slice out of PagedBytes starting at start with a
given length. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void fillSlice(BytesRef b, long start, int length)
PagedBytes
starting at start with a
given length. Iff the slice spans across a block border this method will
allocate sufficient resources and copy the paged data.
Slices spanning more than one block are not supported.
public void fill(BytesRef b, long start)
Note: this method does not support slices spanning across block borders.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |