Class TestLazyDataBlockDecompression

java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestLazyDataBlockDecompression

A kind of integration test at the intersection of HFileBlock, CacheConfig, and LruBlockCache.
  • Field Details

  • Constructor Details

  • Method Details

    • data

      public static Iterable<Object[]> data()
    • setUp

      public void setUp() throws IOException
      Throws:
      IOException
    • tearDown

      public void tearDown()
    • writeHFile

      private static void writeHFile(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.io.hfile.CacheConfig cc, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.io.hfile.HFileContext cxt, int entryCount) throws IOException
      Write entryCount random keyvalues to a new HFile at path. Returns the row bytes of the KeyValues written, in the order they were written.
      Throws:
      IOException
    • cacheBlocks

      private static void cacheBlocks(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.io.hfile.CacheConfig cacheConfig, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.io.hfile.HFileContext cxt) throws IOException
      Read all blocks from path to populate blockCache.
      Throws:
      IOException
    • testCompressionIncreasesEffectiveBlockCacheSize

      Throws:
      Exception