public abstract class IntegerCodec extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected ByteBuffer | inBuffer | 
| protected ByteBuffer | outBuffer | 
| protected int[] | supportArray | 
| Constructor and Description | 
|---|
| IntegerCodec() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | compress(int[] in,
        int len,
        ByteOut out)Compress and write down an integer array | 
| abstract void | decompress(ByteIn in,
          int[] out,
          int num)Read and decompress an integer array | 
| abstract void | skip(ByteIn in)avoid to decompress the next block (the size of the block is written 
 on the input stream) | 
| String | toString()returns a textual description of the codec | 
protected ByteBuffer inBuffer
protected ByteBuffer outBuffer
protected int[] supportArray
public abstract void compress(int[] in,
            int len,
            ByteOut out)
                       throws IOException
in - the array to compresslen - number of in's elements to compressout - the output channelIOExceptionpublic abstract void decompress(ByteIn in, int[] out, int num) throws IOException
in - the input channelout - the decompressed arraynum - expected number of decompressed elementsIOExceptionpublic abstract void skip(ByteIn in) throws IOException
in - the input channelIOExceptionTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow