Package org.apache.lucene.util
Class PagedBytes.Reader
java.lang.Object
org.apache.lucene.util.PagedBytes.Reader
- Enclosing class:
PagedBytes
Provides methods to read BytesRefs from a frozen
PagedBytes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidReads length as 1 or 2 byte vInt prefix, starting at start.voidGets a slice out ofPagedBytesstarting at start with a given length.longReturns approximate RAM bytes used
-
Method Details
-
fillSlice
Gets a slice out ofPagedBytesstarting 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 two blocks are not supported.
-
fill
Reads length as 1 or 2 byte vInt prefix, starting at start.Note: this method does not support slices spanning across block borders.
-
ramBytesUsed
public long ramBytesUsed()Returns approximate RAM bytes used
-