Class PagedBytes.Reader
Provides methods to read BytesRefs from a frozen PagedBytes.
Inheritance
System.Object
PagedBytes.Reader
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public sealed class Reader
Methods
| Improve this Doc View SourceFill(BytesRef, Int64)
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 | |
System.Int64 | start |
FillSlice(BytesRef, Int64, Int32)
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 | |
System.Int64 | start | |
System.Int32 | length |
RamBytesUsed()
Returns approximate RAM bytes used.
Declaration
public long RamBytesUsed()
Returns
Type | Description |
---|---|
System.Int64 |