Class CompressionContext.ValueCompressor
java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.CompressionContext.ValueCompressor
- Enclosing class:
- CompressionContext
Encapsulates the compression algorithm and its streams that we will use for value compression
in this WAL.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Compression.Algorithmprivate InputStreamprivate OutputStreamprivate org.apache.hadoop.io.compress.Compressorprivate org.apache.hadoop.io.compress.Decompressor(package private) static final intprivate ByteArrayOutputStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()byte[]compress(byte[] valueArray, int valueOffset, int valueLength) voiddecompress(InputStream in, int inLength, byte[] outArray, int outOffset, int outLength) private int
-
Field Details
-
IO_BUFFER_SIZE
- See Also:
-
algorithm
-
compressor
-
decompressor
-
lowerIn
-
lowerOut
-
compressedIn
-
compressedOut
-
-
Constructor Details
-
ValueCompressor
-
-
Method Details
-
getAlgorithm
-
compress
- Throws:
IOException
-
decompress
public void decompress(InputStream in, int inLength, byte[] outArray, int outOffset, int outLength) throws IOException - Throws:
IOException
-
rawReadInt
- Throws:
IOException
-
clear
-