- All Known Implementing Classes:
BulkOperation,BulkOperationPacked,BulkOperationPacked1,BulkOperationPacked10,BulkOperationPacked11,BulkOperationPacked12,BulkOperationPacked13,BulkOperationPacked14,BulkOperationPacked15,BulkOperationPacked16,BulkOperationPacked17,BulkOperationPacked18,BulkOperationPacked19,BulkOperationPacked2,BulkOperationPacked20,BulkOperationPacked21,BulkOperationPacked22,BulkOperationPacked23,BulkOperationPacked24,BulkOperationPacked3,BulkOperationPacked4,BulkOperationPacked5,BulkOperationPacked6,BulkOperationPacked7,BulkOperationPacked8,BulkOperationPacked9,BulkOperationPackedSingleBlock
- Enclosing class:
PackedInts
public static interface PackedInts.Encoder
An encoder for packed integers.
-
Method Summary
Modifier and TypeMethodDescriptionintThe minimum number of byte blocks to encode in a single iteration, when using byte encoding.intThe number of values that can be stored inbyteBlockCount()byte blocks.voidencode(int[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations) Readiterations * valueCount()values fromvalues, encode them and write8 * iterations * blockCount()blocks intoblocks.voidencode(int[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations) Readiterations * valueCount()values fromvalues, encode them and writeiterations * blockCount()blocks intoblocks.voidencode(long[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations) Readiterations * valueCount()values fromvalues, encode them and write8 * iterations * blockCount()blocks intoblocks.voidencode(long[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations) Readiterations * valueCount()values fromvalues, encode them and writeiterations * blockCount()blocks intoblocks.intThe minimum number of long blocks to encode in a single iteration, when using long encoding.intThe 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. -
encode
void encode(long[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations) Readiterations * valueCount()values fromvalues, encode them and writeiterations * blockCount()blocks intoblocks.- Parameters:
values- the values buffervaluesOffset- the offset where to start reading valuesblocks- the long blocks that hold packed integer valuesblocksOffset- the offset where to start writing blocksiterations- controls how much data to encode
-
encode
void encode(long[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations) Readiterations * valueCount()values fromvalues, encode them and write8 * iterations * blockCount()blocks intoblocks.- Parameters:
values- the values buffervaluesOffset- the offset where to start reading valuesblocks- the long blocks that hold packed integer valuesblocksOffset- the offset where to start writing blocksiterations- controls how much data to encode
-
encode
void encode(int[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations) Readiterations * valueCount()values fromvalues, encode them and writeiterations * blockCount()blocks intoblocks.- Parameters:
values- the values buffervaluesOffset- the offset where to start reading valuesblocks- the long blocks that hold packed integer valuesblocksOffset- the offset where to start writing blocksiterations- controls how much data to encode
-
encode
void encode(int[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations) Readiterations * valueCount()values fromvalues, encode them and write8 * iterations * blockCount()blocks intoblocks.- Parameters:
values- the values buffervaluesOffset- the offset where to start reading valuesblocks- the long blocks that hold packed integer valuesblocksOffset- the offset where to start writing blocksiterations- controls how much data to encode
-