Class PagedBytes.Reader
Provides methods to read BytesRefs from a frozen PagedBytes.
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public sealed class PagedBytes.Reader
Methods
Fill(BytesRef, long)
Reads length as 1 or 2 byte vInt prefix, starting at start
.
Note: this method does not support slices spanning across block borders.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public void Fill(BytesRef b, long start)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | b | |
long | start |
See Also
FillSlice(BytesRef, long, int)
Gets a slice out of PagedBytes starting at start
with a
given length. If 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.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public void FillSlice(BytesRef b, long start, int length)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | b | |
long | start | |
int | length |
See Also
RamBytesUsed()
Returns approximate RAM bytes used.
Declaration
public long RamBytesUsed()
Returns
Type | Description |
---|---|
long |