Package org.apache.lucene.util.packed
Interface PackedInts.Decoder
- Enclosing class:
- PackedInts
public static interface PackedInts.Decoder
A decoder for packed integers.
-
Method Summary
Modifier and TypeMethodDescriptionint
The minimum number of byte blocks to encode in a single iteration, when using byte encoding.int
The number of values that can be stored inbyteBlockCount()
byte blocks.void
decode
(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) Read8 * iterations * blockCount()
blocks fromblocks
, decode them and writeiterations * valueCount()
values intovalues
.void
decode
(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) Read8 * iterations * blockCount()
blocks fromblocks
, decode them and writeiterations * valueCount()
values intovalues
.void
decode
(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) Readiterations * blockCount()
blocks fromblocks
, decode them and writeiterations * valueCount()
values intovalues
.void
decode
(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) Readiterations * blockCount()
blocks fromblocks
, decode them and writeiterations * valueCount()
values intovalues
.int
The minimum number of long blocks to encode in a single iteration, when using long encoding.int
The number of values that can be stored inlongBlockCount()
long blocks.
-
Method Details
-
longBlockCount
int longBlockCount()The minimum number of long blocks to encode in a single iteration, when using long encoding. -
longValueCount
int longValueCount()The number of values that can be stored inlongBlockCount()
long blocks. -
byteBlockCount
int byteBlockCount()The minimum number of byte blocks to encode in a single iteration, when using byte encoding. -
byteValueCount
int byteValueCount()The number of values that can be stored inbyteBlockCount()
byte blocks. -
decode
void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) Readiterations * blockCount()
blocks fromblocks
, decode them and writeiterations * valueCount()
values intovalues
.- Parameters:
blocks
- the long blocks that hold packed integer valuesblocksOffset
- the offset where to start reading blocksvalues
- the values buffervaluesOffset
- the offset where to start writing valuesiterations
- controls how much data to decode
-
decode
void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) Read8 * iterations * blockCount()
blocks fromblocks
, decode them and writeiterations * valueCount()
values intovalues
.- Parameters:
blocks
- the long blocks that hold packed integer valuesblocksOffset
- the offset where to start reading blocksvalues
- the values buffervaluesOffset
- the offset where to start writing valuesiterations
- controls how much data to decode
-
decode
void decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) Readiterations * blockCount()
blocks fromblocks
, decode them and writeiterations * valueCount()
values intovalues
.- Parameters:
blocks
- the long blocks that hold packed integer valuesblocksOffset
- the offset where to start reading blocksvalues
- the values buffervaluesOffset
- the offset where to start writing valuesiterations
- controls how much data to decode
-
decode
void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) Read8 * iterations * blockCount()
blocks fromblocks
, decode them and writeiterations * valueCount()
values intovalues
.- Parameters:
blocks
- the long blocks that hold packed integer valuesblocksOffset
- the offset where to start reading blocksvalues
- the values buffervaluesOffset
- the offset where to start writing valuesiterations
- controls how much data to decode
-