Class CompressionTestBase

java.lang.Object
org.apache.hadoop.hbase.io.compress.CompressionTestBase
Direct Known Subclasses:
TestBrotliCodec, TestLz4Codec, TestLz4Codec, TestLzoCodec, TestSnappyCodec, TestSnappyCodec, TestZstdCodec, TestZstdCodec, TestZstdDictionary

public class CompressionTestBase extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final int
     
    protected static final int
     
    protected static final org.slf4j.Logger
     
    protected static final byte[]
     
    protected static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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 buffer
    protected 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
     
    protected static void
    fill(RandomDistribution.DiscreteRNG rng, byte[][] input)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait