Class AbstractPagedMutable<T>
Base implementation for PagedMutable and PagedGrowableWriter.
This is a Lucene.NET INTERNAL API, use at your own risk
Inheritance
System.Object
AbstractPagedMutable<T>
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 abstract class AbstractPagedMutable<T> : Int64Values where T : AbstractPagedMutable<T>
Type Parameters
Name | Description |
---|---|
T |
Properties
| Improve this Doc View SourceCount
The number of values.
NOTE: This was size() in Lucene.
Declaration
public long Count { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
| Improve this Doc View SourceBaseRamBytesUsed()
Declaration
protected virtual long BaseRamBytesUsed()
Returns
Type | Description |
---|---|
System.Int64 |
FillPages()
Declaration
protected void FillPages()
Get(Int64)
Declaration
public override sealed long Get(long index)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | index |
Returns
Type | Description |
---|---|
System.Int64 |
Overrides
| Improve this Doc View SourceGrow()
Similar to Grow(Int64[]).
Declaration
public T Grow()
Returns
Type | Description |
---|---|
T |
Grow(Int64)
Similar to Grow(Int64[], Int32).
Declaration
public T Grow(long minSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | minSize |
Returns
Type | Description |
---|---|
T |
NewMutable(Int32, Int32)
Declaration
protected abstract PackedInt32s.Mutable NewMutable(int valueCount, int bitsPerValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | valueCount | |
System.Int32 | bitsPerValue |
Returns
Type | Description |
---|---|
PackedInt32s.Mutable |
NewUnfilledCopy(Int64)
Declaration
protected abstract T NewUnfilledCopy(long newSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | newSize |
Returns
Type | Description |
---|---|
T |
RamBytesUsed()
Return the number of bytes used by this object.
Declaration
public virtual long RamBytesUsed()
Returns
Type | Description |
---|---|
System.Int64 |
Resize(Int64)
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 |
---|---|---|
System.Int64 | newSize |
Returns
Type | Description |
---|---|
T |
Set(Int64, Int64)
Set value at index
.
Declaration
public void Set(long index, long value)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | index | |
System.Int64 | value |
ToString()
Declaration
public override sealed string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()