public final class VIntCodec extends IntegerCodec
inBuffer, outBuffer, supportArray| Constructor and Description |
|---|
VIntCodec() |
| Modifier and Type | Method and Description |
|---|---|
void |
compress(int[] in,
int len,
ByteOut out)
Compress and write down an integer array
|
void |
compress(long[] in,
int len,
ByteOut out) |
void |
decompress(ByteIn in,
int[] out,
int num)
Read and decompress an integer array
|
void |
decompress(ByteIn in,
long[] out,
int num) |
void |
skip(ByteIn in)
avoid to decompress the next block (the size of the block is written
on the input stream)
|
toStringpublic final void compress(int[] in,
int len,
ByteOut out)
throws IOException
IntegerCodeccompress in class IntegerCodecin - the array to compresslen - number of in's elements to compressout - the output channelIOExceptionpublic final void decompress(ByteIn in, int[] out, int num) throws IOException
IntegerCodecdecompress in class IntegerCodecin - the input channelout - the decompressed arraynum - expected number of decompressed elementsIOExceptionpublic void compress(long[] in,
int len,
ByteOut out)
throws IOException
IOExceptionpublic void decompress(ByteIn in, long[] out, int num) throws IOException
IOExceptionpublic final void skip(ByteIn in) throws IOException
IntegerCodecskip in class IntegerCodecin - the input channelIOExceptionTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow