Class AbstractAppendingInt64Buffer
Common functionality shared by AppendingDeltaPackedInt64Buffer and MonotonicAppendingInt64Buffer.
NOTE: This was AbstractAppendingLongBuffer in Lucene
Inheritance
System.Object
AbstractAppendingInt64Buffer
Inherited Members
Namespace: Lucene.Net.Util.Packed
Assembly: Lucene.Net.dll
Syntax
public abstract class AbstractAppendingInt64Buffer : Int64Values
Properties
| Improve this Doc View SourceCount
Get the number of values that have been added to the buffer.
NOTE: This was size() in Lucene.
Declaration
public long Count { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
PageSize
Declaration
public int PageSize { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceAdd(Int64)
Append a value to this buffer.
Declaration
public void Add(long l)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | l |
Freeze()
Pack all pending values in this buffer. Subsequent calls to Add(Int64) will fail.
Declaration
public virtual void Freeze()
Get(Int64)
Declaration
public override sealed long Get(long index)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | index |
Returns
Type | Description |
---|---|
System.Int64 |
Overrides
| Improve this Doc View SourceGet(Int64, Int64[], Int32, Int32)
Bulk get: read at least one and at most len
index
into arr[off:off+len]
and return
the actual number of values that have been read.
Declaration
public int Get(long index, long[] arr, int off, int len)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | index | |
System.Int64[] | arr | |
System.Int32 | off | |
System.Int32 | len |
Returns
Type | Description |
---|---|
System.Int32 |
GetIterator()
Return an iterator over the values of this buffer.
Declaration
public virtual AbstractAppendingInt64Buffer.Iterator GetIterator()
Returns
Type | Description |
---|---|
AbstractAppendingInt64Buffer.Iterator |
RamBytesUsed()
Return the number of bytes used by this instance.
Declaration
public virtual long RamBytesUsed()
Returns
Type | Description |
---|---|
System.Int64 |