|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.io.compress.Compression
@InterfaceAudience.Private public final class Compression
Compression related stuff. Copied from hadoop-3315 tfile.
Nested Class Summary | |
---|---|
static class |
Compression.Algorithm
Compression algorithms. |
Method Summary | |
---|---|
static void |
decompress(byte[] dest,
int destOffset,
InputStream bufferedBoundedStream,
int compressedSize,
int uncompressedSize,
Compression.Algorithm compressAlgo)
Decompresses data from the given stream using the configured compression algorithm. |
static Compression.Algorithm |
getCompressionAlgorithmByName(String compressName)
|
static String[] |
getSupportedAlgorithms()
Get names of supported compression algorithms. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Compression.Algorithm getCompressionAlgorithmByName(String compressName)
public static String[] getSupportedAlgorithms()
public static void decompress(byte[] dest, int destOffset, InputStream bufferedBoundedStream, int compressedSize, int uncompressedSize, Compression.Algorithm compressAlgo) throws IOException
dest
- the output bytes bufferdestOffset
- start writing position of the output bufferbufferedBoundedStream
- a stream to read compressed data from, bounded to the exact amount
of compressed datacompressedSize
- compressed data size, header not includeduncompressedSize
- uncompressed data size, header not includedcompressAlgo
- compression algorithm used
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |