Class PackedInt32s.NullReader
A PackedInt32s.Reader which has all its values equal to 0 (bitsPerValue = 0).
Inherited Members
Namespace: Lucene.Net.Util.Packed
Assembly: Lucene.Net.dll
Syntax
public sealed class PackedInt32s.NullReader : PackedInt32s.Reader
Constructors
NullReader(int)
Sole constructor.
Declaration
public NullReader(int valueCount)
Parameters
| Type | Name | Description |
|---|---|---|
| int | valueCount |
Properties
BitsPerValue
A PackedInt32s.Reader which has all its values equal to 0 (bitsPerValue = 0).
Declaration
public override int BitsPerValue { get; }
Property Value
| Type | Description |
|---|---|
| int | The number of bits used to store any given value.
Note: this does not imply that memory usage is
|
Overrides
Count
The number of values.
NOTE: This was size() in Lucene.Declaration
public override int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Methods
Get(int)
Returns the numeric value for the specified document ID.
Declaration
public override long Get(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Returns
| Type | Description |
|---|---|
| long | numeric value |
Overrides
Get(int, long[], int, int)
Bulk get: read at least one and at most len longs starting
from index into arr[off:off+len] and return
the actual number of values that have been read.
Declaration
public override int Get(int index, long[] arr, int off, int len)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | |
| long[] | arr | |
| int | off | |
| int | len |
Returns
| Type | Description |
|---|---|
| int |
Overrides
RamBytesUsed()
Return the in-memory size in bytes.
Declaration
public override long RamBytesUsed()
Returns
| Type | Description |
|---|---|
| long |