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 intstatic final HBaseClassTestRuleprivate org.apache.hadoop.conf.Configurationprivate static final intprivate org.apache.hadoop.fs.FileSystemprivate static final intprivate List<byte[]>private List<org.apache.hadoop.hbase.KeyValue>private static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static final intprivate org.apache.hadoop.fs.Pathprivate static final Randomprivate static final intprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidreadBloomFilters(org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.regionserver.BloomType bt, byte[] key, org.apache.hadoop.hbase.KeyValue keyValue) private voidreadDataAndIndexBlocks(org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.KeyValue keyValue, boolean isScanMetricsEnabled) private booleanreadEachBlockInLoadOnOpenDataSection(org.apache.hadoop.hbase.io.hfile.HFileBlock block, boolean readNextHeader) private voidreadLoadOnOpenDataSection(org.apache.hadoop.fs.Path path, boolean hasBloomFilters) voidsetUp()voidvoidvoidvoidprivate voidwriteBloomFilters(org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.regionserver.BloomType bt, int bloomBlockByteSize) private voidwriteData(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
-