T
- type of the output of the compressionpublic interface CODEC<T> extends Serializable
Modifier and Type | Method and Description |
---|---|
T |
co(int[] in,
int offset,
int len)
Compress.
|
int |
dec(T t,
int[] out,
int outOffset,
int len)
Decompress.
|
boolean |
isIntegrated()
Returns if the CODEC is integrated, i.e.
|
void |
reset()
Resets the collection of statistics.
|
long[] |
stats()
Returns statistics of the CODEC in terms of total input/output bytes
processed.
|
T co(int[] in, int offset, int len)
in
- array to be compressed.offset
- offset of inlen
- number of integers to be compressedint dec(T t, int[] out, int outOffset, int len)
t
- compressed representation of an array.out
- array where to write the compressed.outOffset
- offset of outlen
- number of integers that need to be decompressedlong[] stats()
void reset()
boolean isIntegrated()
Copyright © 2016. All rights reserved.