public class LemireCodec extends IntegerCodec
inBuffer, outBuffer, supportArray
Constructor and Description |
---|
LemireCodec(me.lemire.integercompression.IntegerCODEC codec) |
LemireCodec(String[] params) |
Modifier and Type | Method and Description |
---|---|
void |
compress(int[] in,
int len,
ByteOut out)
Compress and write down an integer array
|
void |
decompress(ByteIn in,
int[] out,
int num)
Read and decompress an integer array
|
static me.lemire.integercompression.IntegerCODEC |
getCODEC(String[] params) |
void |
skip(ByteIn in)
avoid to decompress the next block (the size of the block is written
on the input stream)
|
toString
public final void compress(int[] in, int len, ByteOut out) throws IOException
IntegerCodec
compress
in class IntegerCodec
in
- the array to compresslen
- number of in's elements to compressout
- the output channelIOException
public final void decompress(ByteIn in, int[] out, int num) throws IOException
IntegerCodec
decompress
in class IntegerCodec
in
- the input channelout
- the decompressed arraynum
- expected number of decompressed elementsIOException
public final void skip(ByteIn in) throws IOException
IntegerCodec
skip
in class IntegerCodec
in
- the input channelIOException
Terrier 4.0. Copyright © 2004-2014 University of Glasgow