Class PagedGrowableWriter
A PagedGrowableWriter. This class slices data into fixed-size blocks which have independent numbers of bits per value and grow on-demand.
You should use this class instead of the AbstractAppendingInt64Buffer related ones only when you need random write-access. Otherwise this class will likely be slower and less memory-efficient.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Inheritance
Inherited Members
Namespace: Lucene.Net.Util.Packed
Assembly: Lucene.Net.dll
Syntax
public sealed class PagedGrowableWriter : AbstractPagedMutable<PagedGrowableWriter>
Constructors
PagedGrowableWriter(long, int, int, float)
Create a new PagedGrowableWriter instance.
Declaration
public PagedGrowableWriter(long size, int pageSize, int startBitsPerValue, float acceptableOverheadRatio)
Parameters
Type | Name | Description |
---|---|---|
long | size | The number of values to store. |
int | pageSize | The number of values per page. |
int | startBitsPerValue | The initial number of bits per value. |
float | acceptableOverheadRatio | An acceptable overhead ratio. |
Methods
BaseRamBytesUsed()
A PagedGrowableWriter. This class slices data into fixed-size blocks which have independent numbers of bits per value and grow on-demand.
You should use this class instead of the AbstractAppendingInt64Buffer related ones only when you need random write-access. Otherwise this class will likely be slower and less memory-efficient.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected override long BaseRamBytesUsed()
Returns
Type | Description |
---|---|
long |
Overrides
NewMutable(int, int)
A PagedGrowableWriter. This class slices data into fixed-size blocks which have independent numbers of bits per value and grow on-demand.
You should use this class instead of the AbstractAppendingInt64Buffer related ones only when you need random write-access. Otherwise this class will likely be slower and less memory-efficient.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected override PackedInt32s.Mutable NewMutable(int valueCount, int bitsPerValue)
Parameters
Type | Name | Description |
---|---|---|
int | valueCount | |
int | bitsPerValue |
Returns
Type | Description |
---|---|
PackedInt32s.Mutable |
Overrides
NewUnfilledCopy(long)
A PagedGrowableWriter. This class slices data into fixed-size blocks which have independent numbers of bits per value and grow on-demand.
You should use this class instead of the AbstractAppendingInt64Buffer related ones only when you need random write-access. Otherwise this class will likely be slower and less memory-efficient.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected override PagedGrowableWriter NewUnfilledCopy(long newSize)
Parameters
Type | Name | Description |
---|---|---|
long | newSize |
Returns
Type | Description |
---|---|
PagedGrowableWriter |