public class TestSeekBeforeWithInlineBlocks extends Object
Modifier and Type | Field and Description |
---|---|
private static int |
BLOOM_BLOCK_SIZE |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private static int |
DATA_BLOCK_SIZE |
private static int[] |
EXPECTED_NUM_LEVELS |
private static byte[] |
FAM |
private org.apache.hadoop.fs.FileSystem |
fs |
private static int[] |
INDEX_CHUNK_SIZES |
private static org.slf4j.Logger |
LOG |
private static int |
NUM_KV |
private static Random |
RAND |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestSeekBeforeWithInlineBlocks() |
Modifier and Type | Method and Description |
---|---|
private void |
checkCell(org.apache.hadoop.hbase.Cell expected,
org.apache.hadoop.hbase.Cell actual)
Check a key/value pair after it was read by the reader
|
private void |
checkNoSeekBefore(org.apache.hadoop.hbase.Cell[] cells,
org.apache.hadoop.hbase.io.hfile.HFileScanner scanner,
int i) |
private void |
checkSeekBefore(org.apache.hadoop.hbase.Cell[] cells,
org.apache.hadoop.hbase.io.hfile.HFileScanner scanner,
int i) |
void |
testMultiIndexLevelRandomHFileWithBlooms()
Scanner.seekBefore() could fail because when seeking to a previous HFile data block, it needs
to know the size of that data block, which it calculates using current data block offset and
the previous data block offset.
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final int NUM_KV
private static final int DATA_BLOCK_SIZE
private static final int BLOOM_BLOCK_SIZE
private static final int[] INDEX_CHUNK_SIZES
private static final int[] EXPECTED_NUM_LEVELS
private static final byte[] FAM
private org.apache.hadoop.fs.FileSystem fs
private org.apache.hadoop.conf.Configuration conf
public TestSeekBeforeWithInlineBlocks()
public void testMultiIndexLevelRandomHFileWithBlooms() throws IOException
IOException
private void checkSeekBefore(org.apache.hadoop.hbase.Cell[] cells, org.apache.hadoop.hbase.io.hfile.HFileScanner scanner, int i) throws IOException
IOException
private void checkNoSeekBefore(org.apache.hadoop.hbase.Cell[] cells, org.apache.hadoop.hbase.io.hfile.HFileScanner scanner, int i) throws IOException
IOException
private void checkCell(org.apache.hadoop.hbase.Cell expected, org.apache.hadoop.hbase.Cell actual)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.