Interface PackedInt32s.IEncoder
An encoder for packed integers.
Namespace: Lucene.Net.Util.Packed
Assembly: Lucene.Net.dll
Syntax
public interface IEncoder
Properties
| Improve this Doc View SourceByteBlockCount
The minimum number of byte blocks to encode in a single iteration, when using byte encoding.
Declaration
int ByteBlockCount { get; }
Property Value
Type | Description |
---|---|
System. |
ByteValueCount
The number of values that can be stored in Byte
Declaration
int ByteValueCount { get; }
Property Value
Type | Description |
---|---|
System. |
Int64BlockCount
The minimum number of long blocks to encode in a single iteration, when using long encoding.
NOTE: This was longBlockCount() in Lucene
Declaration
int Int64BlockCount { get; }
Property Value
Type | Description |
---|---|
System. |
Int64ValueCount
The number of values that can be stored in Int64Block
NOTE: This was longValueCount() in Lucene
Declaration
int Int64ValueCount { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceEncode(Int32[], Int32, Byte[], Int32, Int32)
Read iterations * ValueCount
values from values
,
encode them and write 8 * iterations * BlockCount
blocks into
blocks
.
Declaration
void Encode(int[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations)
Parameters
Type | Name | Description |
---|---|---|
System. |
values | The values buffer. |
System. |
valuesOffset | The offset where to start reading values. |
System. |
blocks | The long blocks that hold packed integer values. |
System. |
blocksOffset | The offset where to start writing blocks. |
System. |
iterations | Controls how much data to encode. |
Encode(Int32[], Int32, Int64[], Int32, Int32)
Read iterations * ValueCount
values from values
,
encode them and write iterations * BlockCount
blocks into
blocks
.
Declaration
void Encode(int[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations)
Parameters
Type | Name | Description |
---|---|---|
System. |
values | The values buffer. |
System. |
valuesOffset | The offset where to start reading values. |
System. |
blocks | The long blocks that hold packed integer values. |
System. |
blocksOffset | The offset where to start writing blocks. |
System. |
iterations | Controls how much data to encode. |
Encode(Int64[], Int32, Byte[], Int32, Int32)
Read iterations * ValueCount
values from values
,
encode them and write 8 * iterations * BlockCount
blocks into
blocks
.
Declaration
void Encode(long[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations)
Parameters
Type | Name | Description |
---|---|---|
System. |
values | The values buffer. |
System. |
valuesOffset | The offset where to start reading values. |
System. |
blocks | The long blocks that hold packed integer values. |
System. |
blocksOffset | The offset where to start writing blocks. |
System. |
iterations | Controls how much data to encode. |
Encode(Int64[], Int32, Int64[], Int32, Int32)
Read iterations * ValueCount
values from values
,
encode them and write iterations * BlockCount
blocks into
blocks
.
Declaration
void Encode(long[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations)
Parameters
Type | Name | Description |
---|---|---|
System. |
values | The values buffer. |
System. |
valuesOffset | The offset where to start reading values. |
System. |
blocks | The long blocks that hold packed integer values. |
System. |
blocksOffset | The offset where to start writing blocks. |
System. |
iterations | Controls how much data to encode. |