Class AbstractPagedMutable<T>
Base implementation for PagedMutable and PagedGrowableWriter.
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 abstract class AbstractPagedMutable<T> : Int64Values where T : AbstractPagedMutable<T>
Type Parameters
Name | Description |
---|---|
T |
Properties
Count
The number of values.
NOTE: This was size() in Lucene.Declaration
public long Count { get; }
Property Value
Type | Description |
---|---|
long |
Methods
BaseRamBytesUsed()
Base implementation for PagedMutable and PagedGrowableWriter.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected virtual long BaseRamBytesUsed()
Returns
Type | Description |
---|---|
long |
FillPages()
Base implementation for PagedMutable and PagedGrowableWriter.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected void FillPages()
Get(long)
Get value at index
.
Declaration
public override sealed long Get(long index)
Parameters
Type | Name | Description |
---|---|---|
long | index |
Returns
Type | Description |
---|---|
long |
Overrides
Grow()
Similar to Grow(long[]).
Declaration
public T Grow()
Returns
Type | Description |
---|---|
T |
Grow(long)
Similar to Grow(long[], int).
Declaration
public T Grow(long minSize)
Parameters
Type | Name | Description |
---|---|---|
long | minSize |
Returns
Type | Description |
---|---|
T |
NewMutable(int, int)
Base implementation for PagedMutable and PagedGrowableWriter.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected abstract PackedInt32s.Mutable NewMutable(int valueCount, int bitsPerValue)
Parameters
Type | Name | Description |
---|---|---|
int | valueCount | |
int | bitsPerValue |
Returns
Type | Description |
---|---|
PackedInt32s.Mutable |
NewUnfilledCopy(long)
Base implementation for PagedMutable and PagedGrowableWriter.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected abstract T NewUnfilledCopy(long newSize)
Parameters
Type | Name | Description |
---|---|---|
long | newSize |
Returns
Type | Description |
---|---|
T |
RamBytesUsed()
Return the number of bytes used by this object.
Declaration
public virtual long RamBytesUsed()
Returns
Type | Description |
---|---|
long |
Resize(long)
Create a new copy of size newSize
based on the content of
this buffer. This method is much more efficient than creating a new
instance and copying values one by one.
Declaration
public T Resize(long newSize)
Parameters
Type | Name | Description |
---|---|---|
long | newSize |
Returns
Type | Description |
---|---|
T |
Set(long, long)
Set value at index
.
Declaration
public void Set(long index, long value)
Parameters
Type | Name | Description |
---|---|---|
long | index | |
long | value |
ToString()
Returns a string that represents the current object.
Declaration
public override sealed string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |