Class CompressionTestBase
java.lang.Object
org.apache.hadoop.hbase.io.compress.CompressionTestBase
- Direct Known Subclasses:
TestBrotliCodec
,TestLz4Codec
,TestLz4Codec
,TestLzoCodec
,TestSnappyCodec
,TestSnappyCodec
,TestZstdCodec
,TestZstdCodec
,TestZstdDictionary
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected static final int
protected static final org.slf4j.Logger
protected static final byte[]
protected static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
codecLargeTest
(org.apache.hadoop.io.compress.CompressionCodec codec, double sigma) Test with a large input (1MB) divided into blocks of 4KB.protected void
codecSmallTest
(org.apache.hadoop.io.compress.CompressionCodec codec) Test with one smallish input bufferprotected void
codecTest
(org.apache.hadoop.io.compress.CompressionCodec codec, byte[][] input) protected void
codecTest
(org.apache.hadoop.io.compress.CompressionCodec codec, byte[][] input, Integer expectedCompressedSize) protected void
codecVeryLargeTest
(org.apache.hadoop.io.compress.CompressionCodec codec, double sigma) Test with a very large input (100MB) as a single input buffer.protected static void
fill
(RandomDistribution.DiscreteRNG rng, byte[] input) protected static void
fill
(RandomDistribution.DiscreteRNG rng, byte[][] input)
-
Field Details
-
LOG
-
LARGE_SIZE
- See Also:
-
VERY_LARGE_SIZE
- See Also:
-
BLOCK_SIZE
- See Also:
-
SMALL_INPUT
-
-
Constructor Details
-
CompressionTestBase
public CompressionTestBase()
-
-
Method Details
-
codecTest
protected void codecTest(org.apache.hadoop.io.compress.CompressionCodec codec, byte[][] input) throws Exception - Throws:
Exception
-
codecTest
protected void codecTest(org.apache.hadoop.io.compress.CompressionCodec codec, byte[][] input, Integer expectedCompressedSize) throws Exception - Throws:
Exception
-
codecSmallTest
protected void codecSmallTest(org.apache.hadoop.io.compress.CompressionCodec codec) throws Exception Test with one smallish input buffer- Throws:
Exception
-
codecLargeTest
protected void codecLargeTest(org.apache.hadoop.io.compress.CompressionCodec codec, double sigma) throws Exception Test with a large input (1MB) divided into blocks of 4KB.- Throws:
Exception
-
codecVeryLargeTest
protected void codecVeryLargeTest(org.apache.hadoop.io.compress.CompressionCodec codec, double sigma) throws Exception Test with a very large input (100MB) as a single input buffer.- Throws:
Exception
-
fill
-
fill
-