Package org.apache.hadoop.hbase.io.hfile
Class TestBytesReadFromFs
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestBytesReadFromFs
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
static final HBaseClassTestRule
private org.apache.hadoop.conf.Configuration
private static final int
private org.apache.hadoop.fs.FileSystem
private static final int
private List<byte[]>
private List<org.apache.hadoop.hbase.KeyValue>
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final int
private org.apache.hadoop.fs.Path
private static final Random
private static final int
private static final HBaseTestingUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
readBloomFilters
(org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.regionserver.BloomType bt, byte[] key, org.apache.hadoop.hbase.KeyValue keyValue) private void
readDataAndIndexBlocks
(org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.KeyValue keyValue, boolean isScanMetricsEnabled) private boolean
readEachBlockInLoadOnOpenDataSection
(org.apache.hadoop.hbase.io.hfile.HFileBlock block, boolean readNextHeader) private void
readLoadOnOpenDataSection
(org.apache.hadoop.fs.Path path, boolean hasBloomFilters) void
setUp()
void
void
void
void
private void
writeBloomFilters
(org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.regionserver.BloomType bt, int bloomBlockByteSize) private void
writeData
(org.apache.hadoop.fs.Path path)
-
Field Details
-
NUM_KEYS
- See Also:
-
BLOOM_BLOCK_SIZE
- See Also:
-
INDEX_CHUNK_SIZE
- See Also:
-
DATA_BLOCK_SIZE
- See Also:
-
ROW_PREFIX_LENGTH_IN_BLOOM_FILTER
- See Also:
-
CLASS_RULE
-
name
-
LOG
-
TEST_UTIL
-
RNG
-
conf
-
fs
-
keyValues
-
keyList
-
path
-
-
Constructor Details
-
TestBytesReadFromFs
public TestBytesReadFromFs()
-
-
Method Details
-
setUp
- Throws:
IOException
-
testBytesReadFromFsWithScanMetricsDisabled
- Throws:
IOException
-
testBytesReadFromFsToReadDataUsingIndexBlocks
- Throws:
IOException
-
testBytesReadFromFsToReadLoadOnOpenDataSection
- Throws:
IOException
-
testBytesReadFromFsToReadBloomFilterIndexesAndBloomBlocks
- Throws:
IOException
-
writeData
- Throws:
IOException
-
readDataAndIndexBlocks
private void readDataAndIndexBlocks(org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.KeyValue keyValue, boolean isScanMetricsEnabled) throws IOException - Throws:
IOException
-
readLoadOnOpenDataSection
private void readLoadOnOpenDataSection(org.apache.hadoop.fs.Path path, boolean hasBloomFilters) throws IOException - Throws:
IOException
-
readEachBlockInLoadOnOpenDataSection
private boolean readEachBlockInLoadOnOpenDataSection(org.apache.hadoop.hbase.io.hfile.HFileBlock block, boolean readNextHeader) throws IOException - Throws:
IOException
-
readBloomFilters
private void readBloomFilters(org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.regionserver.BloomType bt, byte[] key, org.apache.hadoop.hbase.KeyValue keyValue) throws IOException - Throws:
IOException
-
writeBloomFilters
private void writeBloomFilters(org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.regionserver.BloomType bt, int bloomBlockByteSize) throws IOException - Throws:
IOException
-