Class BlockPackedReaderIterator
Reader for sequences of longs written with BlockPackedWriter.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Util.Packed
Assembly: Lucene.Net.dll
Syntax
public sealed class BlockPackedReaderIterator
Constructors
BlockPackedReaderIterator(DataInput, int, int, long)
Sole constructor.
Declaration
public BlockPackedReaderIterator(DataInput @in, int packedIntsVersion, int blockSize, long valueCount)
Parameters
Type | Name | Description |
---|---|---|
DataInput | in | |
int | packedIntsVersion | |
int | blockSize | The number of values of a block, must be equal to the block size of the BlockPackedWriter which has been used to write the stream. |
long | valueCount |
See Also
Properties
Ord
Return the offset of the next value to read.
Declaration
public long Ord { get; }
Property Value
Type | Description |
---|---|
long |
See Also
Methods
Next()
Read the next value.
Declaration
public long Next()
Returns
Type | Description |
---|---|
long |
See Also
Next(int)
Read between 1
and count
values.
Declaration
public Int64sRef Next(int count)
Parameters
Type | Name | Description |
---|---|---|
int | count |
Returns
Type | Description |
---|---|
Int64sRef |
See Also
Reset(DataInput, long)
Reset the current reader to wrap a stream of valueCount
values contained in in
. The block size remains unchanged.
Declaration
public void Reset(DataInput @in, long valueCount)
Parameters
Type | Name | Description |
---|---|---|
DataInput | in | |
long | valueCount |
See Also
Skip(long)
Skip exactly count
values.
Declaration
public void Skip(long count)
Parameters
Type | Name | Description |
---|---|---|
long | count |