public class TestHFileWriterV3WithDataEncoders extends Object
HFile for all encoded blocks| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.hbase.io.encoding.DataBlockEncoding |
dataBlockEncoding |
private org.apache.hadoop.fs.FileSystem |
fs |
private static org.slf4j.Logger |
LOG |
private static HBaseTestingUtility |
TEST_UTIL |
private boolean |
useTags |
| Constructor and Description |
|---|
TestHFileWriterV3WithDataEncoders(boolean useTags,
org.apache.hadoop.hbase.io.encoding.DataBlockEncoding dataBlockEncoding) |
| Modifier and Type | Method and Description |
|---|---|
static Collection<Object[]> |
parameters() |
private long |
scanBlocks(int entryCount,
org.apache.hadoop.hbase.io.hfile.HFileContext context,
List<org.apache.hadoop.hbase.KeyValue> keyValues,
org.apache.hadoop.fs.FSDataInputStream fsdis,
org.apache.hadoop.hbase.io.hfile.FixedFileTrailer trailer,
org.apache.hadoop.hbase.io.hfile.HFileContext meta,
org.apache.hadoop.hbase.io.hfile.HFileBlock.FSReader blockReader,
int entriesRead,
int blocksRead,
org.apache.hadoop.hbase.io.encoding.DataBlockEncoder encoder) |
void |
setUp() |
void |
testHFileFormatV3() |
private void |
testHFileFormatV3Internals(boolean useTags) |
void |
testMidKeyInHFile() |
private void |
testMidKeyInHFileInternals(boolean useTags) |
private void |
writeDataAndReadFromHFile(org.apache.hadoop.fs.Path hfilePath,
org.apache.hadoop.hbase.io.compress.Compression.Algorithm compressAlgo,
int entryCount,
boolean findMidKey,
boolean useTags) |
private void |
writeKeyValues(int entryCount,
boolean useTags,
org.apache.hadoop.hbase.io.hfile.HFile.Writer writer,
Random rand,
List<org.apache.hadoop.hbase.KeyValue> keyValues) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.fs.FileSystem fs
private boolean useTags
private org.apache.hadoop.hbase.io.encoding.DataBlockEncoding dataBlockEncoding
public TestHFileWriterV3WithDataEncoders(boolean useTags, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding dataBlockEncoding)
public static Collection<Object[]> parameters()
public void setUp() throws IOException
IOExceptionpublic void testHFileFormatV3() throws IOException
IOExceptionprivate void testHFileFormatV3Internals(boolean useTags) throws IOException
IOExceptionpublic void testMidKeyInHFile() throws IOException
IOExceptionprivate void testMidKeyInHFileInternals(boolean useTags) throws IOException
IOExceptionprivate void writeDataAndReadFromHFile(org.apache.hadoop.fs.Path hfilePath, org.apache.hadoop.hbase.io.compress.Compression.Algorithm compressAlgo, int entryCount, boolean findMidKey, boolean useTags) throws IOException
IOExceptionprivate long scanBlocks(int entryCount, org.apache.hadoop.hbase.io.hfile.HFileContext context, List<org.apache.hadoop.hbase.KeyValue> keyValues, org.apache.hadoop.fs.FSDataInputStream fsdis, org.apache.hadoop.hbase.io.hfile.FixedFileTrailer trailer, org.apache.hadoop.hbase.io.hfile.HFileContext meta, org.apache.hadoop.hbase.io.hfile.HFileBlock.FSReader blockReader, int entriesRead, int blocksRead, org.apache.hadoop.hbase.io.encoding.DataBlockEncoder encoder) throws IOException
IOExceptionprivate void writeKeyValues(int entryCount, boolean useTags, org.apache.hadoop.hbase.io.hfile.HFile.Writer writer, Random rand, List<org.apache.hadoop.hbase.KeyValue> keyValues) throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.