Class PagedBytes
Represents a logical byte[] as a series of pages. You can write-once into the logical byte[] (append only), using copy, and then retrieve slices (BytesRef) into it using fill.
@lucene.internal
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public sealed class PagedBytes : object
Constructors
Name | Description |
---|---|
PagedBytes(Int32) | 1<<blockBits must be bigger than biggest single BytesRef slice that will be pulled. |
Methods
Name | Description |
---|---|
Copy(IndexInput, Int64) | Read this many bytes from |
Copy(BytesRef, BytesRef) | Copy BytesRef in, setting BytesRef out to the result.
Do not use this if you will use |
CopyUsingLengthPrefix(BytesRef) | Copy bytes in, writing the length as a 1 or 2 byte vInt prefix. |
Freeze(Boolean) | Commits final byte[], trimming it if necessary and if |
GetDataInput() | Returns a DataInput to read values from this PagedBytes instance. |
GetDataOutput() | Returns a DataOutput that you may use to write into this PagedBytes instance. If you do this, you should not call the other writing methods (eg, copy); results are undefined. |
GetPointer() | |
RamBytesUsed() | Return approx RAM usage in bytes. |