Package org.apache.hadoop.hbase.io.hfile
package org.apache.hadoop.hbase.io.hfile
-
ClassDescriptionA 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.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
.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 blocksTests 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.