|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface PackedInts.Decoder
A decoder for packed integers.
| Method Summary | |
|---|---|
int |
blockCount()
The minimum number of long blocks to decode in a single call. |
void |
decode(byte[] blocks,
int blocksOffset,
int[] values,
int valuesOffset,
int iterations)
Read 8 * iterations * blockCount() blocks from blocks,
decode them and write iterations * valueCount() values into
values. |
void |
decode(byte[] blocks,
int blocksOffset,
long[] values,
int valuesOffset,
int iterations)
Read 8 * iterations * blockCount() blocks from blocks,
decode them and write iterations * valueCount() values into
values. |
void |
decode(long[] blocks,
int blocksOffset,
int[] values,
int valuesOffset,
int iterations)
Read iterations * blockCount() blocks from blocks,
decode them and write iterations * valueCount() values into
values. |
void |
decode(long[] blocks,
int blocksOffset,
long[] values,
int valuesOffset,
int iterations)
Read iterations * blockCount() blocks from blocks,
decode them and write iterations * valueCount() values into
values. |
int |
valueCount()
The number of values that can be stored in blockCount() long
blocks. |
| Method Detail |
|---|
int blockCount()
int valueCount()
blockCount() long
blocks.
void decode(long[] blocks,
int blocksOffset,
long[] values,
int valuesOffset,
int iterations)
iterations * blockCount() blocks from blocks,
decode them and write iterations * valueCount() values into
values.
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
void decode(byte[] blocks,
int blocksOffset,
long[] values,
int valuesOffset,
int iterations)
8 * iterations * blockCount() blocks from blocks,
decode them and write iterations * valueCount() values into
values.
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
void decode(long[] blocks,
int blocksOffset,
int[] values,
int valuesOffset,
int iterations)
iterations * blockCount() blocks from blocks,
decode them and write iterations * valueCount() values into
values.
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
void decode(byte[] blocks,
int blocksOffset,
int[] values,
int valuesOffset,
int iterations)
8 * iterations * blockCount() blocks from blocks,
decode them and write iterations * valueCount() values into
values.
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||