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
System.Object
PagedGrowableWriter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
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)