|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.lemire.integercompression.VariableByte
public class VariableByte
Implementation of variable-byte. For best performance, use it using the ByteIntegerCODEC interface. Note that this does not use differential coding: if you are working on sorted lists, you must compute the deltas separately.
| Constructor Summary | |
|---|---|
VariableByte()
|
|
| Method Summary | |
|---|---|
void |
compress(int[] in,
IntWrapper inpos,
int inlength,
byte[] out,
IntWrapper outpos)
Compress data from an array to another array. |
void |
compress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
Compress data from an array to another array. |
String |
toString()
|
void |
uncompress(byte[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
Uncompress data from an array to another array. |
void |
uncompress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
Uncompress data from an array to another array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VariableByte()
| Method Detail |
|---|
public void compress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
IntegerCODEC
compress in interface IntegerCODECin - input arrayinpos - location in the input arrayinlength - how many integers to compressout - output arrayoutpos - where to write in the output array
public void compress(int[] in,
IntWrapper inpos,
int inlength,
byte[] out,
IntWrapper outpos)
ByteIntegerCODEC
compress in interface ByteIntegerCODECin - input arrayinpos - location in the input arrayinlength - how many integers to compressout - output arrayoutpos - where to write in the output array
public void uncompress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
IntegerCODEC
uncompress 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 out
public void uncompress(byte[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
ByteIntegerCODEC
uncompress in interface ByteIntegerCODECin - 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 outpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||