|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface PackedInts.Encoder
An encoder for packed integers.
Method Summary | |
---|---|
int |
byteBlockCount()
The minimum number of byte blocks to encode in a single iteration, when using byte encoding. |
int |
byteValueCount()
The number of values that can be stored in byteBlockCount() byte
blocks. |
void |
encode(int[] values,
int valuesOffset,
byte[] blocks,
int blocksOffset,
int iterations)
Read iterations * valueCount() values from values ,
encode them and write 8 * iterations * blockCount() blocks into
blocks . |
void |
encode(int[] values,
int valuesOffset,
long[] blocks,
int blocksOffset,
int iterations)
Read iterations * valueCount() values from values ,
encode them and write iterations * blockCount() blocks into
blocks . |
void |
encode(long[] values,
int valuesOffset,
byte[] blocks,
int blocksOffset,
int iterations)
Read iterations * valueCount() values from values ,
encode them and write 8 * iterations * blockCount() blocks into
blocks . |
void |
encode(long[] values,
int valuesOffset,
long[] blocks,
int blocksOffset,
int iterations)
Read iterations * valueCount() values from values ,
encode them and write iterations * blockCount() blocks into
blocks . |
int |
longBlockCount()
The minimum number of long blocks to encode in a single iteration, when using long encoding. |
int |
longValueCount()
The number of values that can be stored in longBlockCount() long
blocks. |
Method Detail |
---|
int longBlockCount()
int longValueCount()
longBlockCount()
long
blocks.
int byteBlockCount()
int byteValueCount()
byteBlockCount()
byte
blocks.
void encode(long[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations)
iterations * valueCount()
values from values
,
encode them and write iterations * blockCount()
blocks into
blocks
.
blocks
- the long blocks that hold packed integer valuesblocksOffset
- the offset where to start writing blocksvalues
- the values buffervaluesOffset
- the offset where to start reading valuesiterations
- controls how much data to encodevoid encode(long[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations)
iterations * valueCount()
values from values
,
encode them and write 8 * iterations * blockCount()
blocks into
blocks
.
blocks
- the long blocks that hold packed integer valuesblocksOffset
- the offset where to start writing blocksvalues
- the values buffervaluesOffset
- the offset where to start reading valuesiterations
- controls how much data to encodevoid encode(int[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations)
iterations * valueCount()
values from values
,
encode them and write iterations * blockCount()
blocks into
blocks
.
blocks
- the long blocks that hold packed integer valuesblocksOffset
- the offset where to start writing blocksvalues
- the values buffervaluesOffset
- the offset where to start reading valuesiterations
- controls how much data to encodevoid encode(int[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations)
iterations * valueCount()
values from values
,
encode them and write 8 * iterations * blockCount()
blocks into
blocks
.
blocks
- the long blocks that hold packed integer valuesblocksOffset
- the offset where to start writing blocksvalues
- the values buffervaluesOffset
- the offset where to start reading valuesiterations
- controls how much data to encode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |