Class PackedInt32s.Mutable
A packed integer array that can be modified.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Inheritance
PackedInt32s.Mutable
Inherited Members
Namespace: Lucene.Net.Util.Packed
Assembly: Lucene.Net.dll
Syntax
public abstract class PackedInt32s.Mutable : PackedInt32s.Reader
Methods
Clear()
Sets all values to 0.
Declaration
public virtual void Clear()
Fill(int, int, long)
Fill the mutable from fromIndex
(inclusive) to
toIndex
(exclusive) with val
.
Declaration
public virtual void Fill(int fromIndex, int toIndex, long val)
Parameters
Type | Name | Description |
---|---|---|
int | fromIndex | |
int | toIndex | |
long | val |
Save(DataOutput)
Save this mutable into out
. Instantiating a reader from
the generated data will return a reader with the same number of bits
per value.
Declaration
public virtual void Save(DataOutput @out)
Parameters
Type | Name | Description |
---|---|---|
DataOutput | out |
Set(int, long)
Set the value at the given index in the array.
Declaration
public abstract void Set(int index, long value)
Parameters
Type | Name | Description |
---|---|---|
int | index | Where the value should be positioned. |
long | value | A value conforming to the constraints set by the array. |
Set(int, long[], int, int)
Bulk set: set at least one and at most len
longs starting
at off
in arr
into this mutable, starting at
index
. Returns the actual number of values that have been
set.
Declaration
public virtual int Set(int index, long[] arr, int off, int len)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
long[] | arr | |
int | off | |
int | len |
Returns
Type | Description |
---|---|
int |