public final class FastPFOR128 extends Object implements IntegerCODEC, SkippableIntegerCODEC
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCK_SIZE |
static int |
DEFAULT_PAGE_SIZE |
| Constructor and Description |
|---|
FastPFOR128()
Construct the fastPFOR CODEC with default parameters.
|
FastPFOR128(int pagesize)
Construct the FastPFOR CODEC.
|
| Modifier and Type | Method and Description |
|---|---|
void |
compress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
Compress data from an array to another array.
|
void |
headlessCompress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
Compress data in blocks of BLOCK_SIZE integers (if fewer than BLOCK_SIZE integers
are provided, nothing is done).
|
void |
headlessUncompress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos,
int mynvalue)
Uncompress data in blocks of integers.
|
String |
toString() |
void |
uncompress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
Uncompress data from an array to another array.
|
public static final int DEFAULT_PAGE_SIZE
public static final int BLOCK_SIZE
public FastPFOR128(int pagesize)
pagesize - the desired page size (recommended value is FastPFOR.DEFAULT_PAGE_SIZE)public FastPFOR128()
public void headlessCompress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
headlessCompress in interface SkippableIntegerCODECin - input arrayinpos - location in the input arrayinlength - how many integers to compressout - output arrayoutpos - where to write in the output arrayIntegerCODEC.compress(int[], IntWrapper, int, int[], IntWrapper)public void headlessUncompress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos,
int mynvalue)
headlessUncompress in interface SkippableIntegerCODECin - array containing data in compressed forminpos - where to start reading in the arrayinlength - length of the compressed data (ignored by some schemes)out - array where to write the compressed outputoutpos - where to write the compressed output in outmynvalue - number of integers we want to decode, the actual number of integers decoded can be lessIntegerCODEC.compress(int[], IntWrapper, int, int[], IntWrapper)public void compress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
IntegerCODECcompress in interface IntegerCODECin - input arrayinpos - location in the input arrayinlength - how many integers to compressout - output arrayoutpos - where to write in the output arraypublic void uncompress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
IntegerCODECuncompress in interface IntegerCODECin - array containing data in compressed forminpos - where to start reading in the arrayinlength - length of the compressed data (ignored by some
schemes)out - array where to write the compressed outputoutpos - where to write the compressed output in outCopyright © 2015. All Rights Reserved.