Class AppendingDeltaPackedInt64Buffer
Utility class to buffer a list of signed longs in memory. This class only supports appending and is optimized for the case where values are close to each other.
NOTE: This was AppendingDeltaPackedLongBuffer in LuceneNote
This API is for internal purposes only and might change in incompatible ways in the next release.
Inheritance
AppendingDeltaPackedInt64Buffer
Inherited Members
Namespace: Lucene.Net.Util.Packed
Assembly: Lucene.Net.dll
Syntax
public sealed class AppendingDeltaPackedInt64Buffer : AbstractAppendingInt64Buffer
Constructors
AppendingDeltaPackedInt64Buffer()
Create an AppendingDeltaPackedInt64Buffer with initialPageCount=16, pageSize=1024 and acceptableOverheadRatio=DEFAULT.
Declaration
public AppendingDeltaPackedInt64Buffer()
AppendingDeltaPackedInt64Buffer(int, int, float)
Create AppendingDeltaPackedInt64Buffer.
Declaration
public AppendingDeltaPackedInt64Buffer(int initialPageCount, int pageSize, float acceptableOverheadRatio)
Parameters
Type | Name | Description |
---|---|---|
int | initialPageCount | The initial number of pages. |
int | pageSize | The size of a single page. |
float | acceptableOverheadRatio | An acceptable overhead ratio per value. |
AppendingDeltaPackedInt64Buffer(float)
Create an AppendingDeltaPackedInt64Buffer with initialPageCount=16, pageSize=1024.
Declaration
public AppendingDeltaPackedInt64Buffer(float acceptableOverheadRatio)
Parameters
Type | Name | Description |
---|---|---|
float | acceptableOverheadRatio |
Methods
RamBytesUsed()
Return the number of bytes used by this instance.
Declaration
public override long RamBytesUsed()
Returns
Type | Description |
---|---|
long |