Package org.apache.hadoop.hbase.io.hfile
package org.apache.hadoop.hbase.io.hfile
-
ClassDescriptionGenerate random <key, value> pairs.A nano-second timer.These helper methods generate random byte[]'s data for KeyValuesUsed in testcases only.Tests that
CacheConfig
does as expected.TestsHFile
cache-on-write functionality for the following block types: data blocks, non-root index blocks, and Bloom filter blocks.This class is to test checksum behavior when data is corrupted.Make sure we always cache important block types, such as index blocks, as long as we have a block cache, even though block caching might be disabled for the column family.test hfile features.This test provides coverage for HFileHeader block fields that are read and interpreted before HBase checksum validation can be applied.Enables writing and rewriting portions of the file backing anHFileBlock
.Reads blocks off of anTestHFileBlockHeaderCorruption.HFileBlockChannelPositionIterator
, counting them as it does.Data class to enabled messing with the bytes behind anHFileBlock
.A simplified wrapper over anHFileBlock.BlockIterator
that looks a lot like anIterator
.A Matcher implementation that can make basic assertions over a providedThrowable
.A wrapper around a block reader which only caches the results of the last operation.Test a case when an inline index chunk is converted to a root one.Testtest the performance for seek.Testing writing a version 3HFile
.Testing writing a version 3HFile
for all encoded blocksA kind of integration test at the intersection ofHFileBlock
,CacheConfig
, andLruBlockCache
.Tests the concurrent LruAdaptiveBlockCache.Tests the concurrent LruBlockCache.TestHFileScanner.reseekTo(org.apache.hadoop.hbase.Cell)
Test the optimization that does not scan files where all key ranges are excluded.Test the optimization that does not scan files where all timestamps are expired.TestHFileScanner.seekTo(Cell)
and its variants.Tests the concurrent TinyLfuBlockCache.