|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectme.lemire.integercompression.IntegratedFastPFOR
public final class IntegratedFastPFOR
This is an integrated version of FastPFOR meaning that it computes differential coding as part of the compression.
For details, please see
Daniel Lemire and Leonid Boytsov, Decoding billions of integers per second through vectorization Software: Practice & Experience http://onlinelibrary.wiley.com/doi/10.1002/spe.2203/abstract http://arxiv.org/abs/1209.2137
For multi-threaded applications, each thread should use its own IntegratedFastPFOR object.
Constructor Summary | |
---|---|
IntegratedFastPFOR()
Construct the fastPFOR CODEC with default parameters. |
|
IntegratedFastPFOR(int pagesize)
Construct the FastPFOR CODEC. |
Method Summary | |
---|---|
void |
compress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
Compress data in blocks of 128 integers (if fewer than 128 integers are provided, nothing is done). |
String |
toString()
|
void |
uncompress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
Uncompress data in blocks of 128 integers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IntegratedFastPFOR(int pagesize)
pagesize
- the desired page size (for expert use)public IntegratedFastPFOR()
Method Detail |
---|
public void compress(int[] in, IntWrapper inpos, int inlength, int[] out, IntWrapper outpos)
compress
in interface IntegerCODEC
in
- 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 uncompress(int[] in, IntWrapper inpos, int inlength, int[] out, IntWrapper outpos)
uncompress
in interface IntegerCODEC
in
- 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 outIntegerCODEC.compress(int[], IntWrapper, int, int[], IntWrapper)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |