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.
This is a Lucene.NET INTERNAL API, use at your own risk
Inheritance
System.Object
PagedGrowableWriter
Inherited Members
Namespace: Lucene.Net.Util.Packed
Assembly: Lucene.Net.dll
Syntax
public sealed class PagedGrowableWriter : AbstractPagedMutable<PagedGrowableWriter>
Constructors
| Improve this Doc View SourcePagedGrowableWriter(Int64, Int32, Int32, Single)
Create a new PagedGrowableWriter instance.
Declaration
public PagedGrowableWriter(long size, int pageSize, int startBitsPerValue, float acceptableOverheadRatio)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | size | The number of values to store. |
System.Int32 | pageSize | The number of values per page. |
System.Int32 | startBitsPerValue | The initial number of bits per value. |
System.Single | acceptableOverheadRatio | An acceptable overhead ratio. |
Methods
| Improve this Doc View SourceBaseRamBytesUsed()
Declaration
protected override long BaseRamBytesUsed()
Returns
Type | Description |
---|---|
System.Int64 |
Overrides
Lucene.Net.Util.Packed.AbstractPagedMutable<Lucene.Net.Util.Packed.PagedGrowableWriter>.BaseRamBytesUsed()
|
Improve this Doc
View Source
NewMutable(Int32, Int32)
Declaration
protected override PackedInt32s.Mutable NewMutable(int valueCount, int bitsPerValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | valueCount | |
System.Int32 | bitsPerValue |
Returns
Type | Description |
---|---|
PackedInt32s.Mutable |
Overrides
Lucene.Net.Util.Packed.AbstractPagedMutable<Lucene.Net.Util.Packed.PagedGrowableWriter>.NewMutable(System.Int32, System.Int32)
|
Improve this Doc
View Source
NewUnfilledCopy(Int64)
Declaration
protected override PagedGrowableWriter NewUnfilledCopy(long newSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | newSize |
Returns
Type | Description |
---|---|
PagedGrowableWriter |
Overrides
Lucene.Net.Util.Packed.AbstractPagedMutable<Lucene.Net.Util.Packed.PagedGrowableWriter>.NewUnfilledCopy(System.Int64)