| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
org.junit.rules.TestName |
testName |
| Constructor and Description |
|---|
TestHFile() |
| Modifier and Type | Method and Description |
|---|---|
static KeyValue.Type |
generateKeyType(Random rand) |
static void |
setUp() |
void |
testCompressionOrdinance()
Make sure the ordinals for our compression algorithms do not change on us.
|
void |
testCorrupt0LengthHFile()
Create 0-length hfile and show that it fails
|
void |
testCorruptTruncatedHFile()
Create a truncated hfile and verify that exception thrown.
|
void |
testEmptyHFile()
Test empty HFile.
|
void |
testGetShortMidpoint() |
protected void |
testHFilefeaturesInternals(boolean useTags) |
void |
testMetaBlocks() |
void |
testNullMetaBlocks() |
void |
testReaderWithoutBlockCache() |
void |
testShortMidpointSameQual() |
void |
testTFileFeatures() |
static void |
truncateFile(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst) |
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName testName
public TestHFile()
public void testReaderWithoutBlockCache() throws Exception
Exceptionpublic static KeyValue.Type generateKeyType(Random rand)
public void testEmptyHFile() throws IOException
IOExceptionpublic void testCorrupt0LengthHFile() throws IOException
IOExceptionpublic static void truncateFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) throws IOException
IOExceptionpublic void testCorruptTruncatedHFile() throws IOException
IOExceptionpublic void testTFileFeatures() throws IOException
IOExceptionprotected void testHFilefeaturesInternals(boolean useTags) throws IOException
IOExceptionpublic void testMetaBlocks() throws Exception
Exceptionpublic void testNullMetaBlocks() throws Exception
Exceptionpublic void testCompressionOrdinance()
public void testShortMidpointSameQual()
public void testGetShortMidpoint()
Copyright © 2007–2019 Cloudera. All rights reserved.