|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectme.lemire.integercompression.S16
public final class S16
Version of Simple16 for NewPFD and OptPFD.
Adapted by D. Lemire from the Apache Lucene project.
Constructor Summary | |
---|---|
S16()
|
Method Summary | |
---|---|
protected static int |
compress(int[] in,
int currentPos,
int inlength,
int[] out,
int tmpoutpos)
|
static int |
compressblock(int[] out,
int outOffset,
int[] in,
int inOffset,
int n)
Compress an integer array using Simple16 |
static int |
decompressblock(int[] out,
int outOffset,
int[] in,
int inOffset,
int n)
Decompress an integer array using Simple16 |
static int |
estimatecompress(int[] in,
int currentPos,
int inlength)
Estimate size of the compressed output. |
protected static void |
uncompress(int[] in,
int tmpinpos,
int inlength,
int[] out,
int currentPos,
int outlength)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public S16()
Method Detail |
---|
protected static int compress(int[] in, int currentPos, int inlength, int[] out, int tmpoutpos)
public static int estimatecompress(int[] in, int currentPos, int inlength)
in
- array to compresscurrentPos
- where to start readinginlength
- how many integers to read
public static final int compressblock(int[] out, int outOffset, int[] in, int inOffset, int n)
out
- the compressed outputoutOffset
- the offset of the output in the number of integersin
- the integer input arrayinOffset
- the offset of the input in the number of integersn
- the number of elements to be compressed
public static final int decompressblock(int[] out, int outOffset, int[] in, int inOffset, int n)
out
- the decompressed outputoutOffset
- the offset of the output in the number of integersin
- the compressed input arrayinOffset
- the offset of the input in the number of integersn
- the number of elements to be compressed
protected static void uncompress(int[] in, int tmpinpos, int inlength, int[] out, int currentPos, int outlength)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |