public class IntCompressor extends Object
Constructor and Description |
---|
IntCompressor()
Constructor with default codec.
|
IntCompressor(SkippableIntegerCODEC c)
Constructor wrapping a codec.
|
Modifier and Type | Method and Description |
---|---|
int[] |
compress(int[] input)
Compress an array and returns the compressed result as a new array.
|
int[] |
uncompress(int[] compressed)
Uncompress an array and returns the uncompressed result as a new array.
|
public IntCompressor(SkippableIntegerCODEC c)
c
- the underlying codecpublic IntCompressor()
public int[] compress(int[] input)
input
- array to be compressedpublic int[] uncompress(int[] compressed)
compressed
- compressed arrayCopyright © 2016. All Rights Reserved.