public class TestHFile extends HBaseTestCase
Copied from hadoop-3315 tfile. Remove after tfile is committed and use the tfile version of this class instead.
HBaseTestCase.ClientScannerIncommon, HBaseTestCase.FlushCache, HBaseTestCase.HRegionIncommon, HBaseTestCase.HTableIncommon, HBaseTestCase.Incommon, HBaseTestCase.InternalScannerIncommon, HBaseTestCase.ScannerIncommonCOLUMNS, conf, fam1, fam2, fam3, FIRST_CHAR, fs, fsTableDescriptors, LAST_CHAR, MAXVERSIONS, meta, PUNCTUATION, START_KEY, START_KEY_BYTES, testDir, testUtil| Constructor and Description |
|---|
TestHFile() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Note that this method must be called after the mini hdfs cluster has
started or we end up with a local file system.
|
void |
tearDown() |
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 |
testMetaBlocks() |
void |
testNullMetaBlocks() |
void |
testTFileFeatures() |
protected void |
testTFilefeaturesInternals(boolean useTags) |
static void |
truncateFile(FileSystem fs,
Path src,
Path dst) |
addContent, addContent, addContent, addContent, addContent, addContent, addContent, assertByteEquals, assertEquals, assertResultEquals, closeRootAndMeta, createMetaRegion, createNewHRegion, createNewHRegion, createTableDescriptor, createTableDescriptor, createTableDescriptor, getUnitTestdir, openClosedRegion, shutdownDfspublic void setUp()
throws Exception
HBaseTestCasesetUp in class HBaseTestCaseExceptionpublic void tearDown()
throws Exception
tearDown in class HBaseTestCaseExceptionpublic void testEmptyHFile()
throws IOException
IOExceptionpublic void testCorrupt0LengthHFile()
throws IOException
IOExceptionpublic static void truncateFile(FileSystem fs,
Path src,
Path dst)
throws IOException
IOExceptionpublic void testCorruptTruncatedHFile()
throws IOException
IOExceptionpublic void testTFileFeatures()
throws IOException
IOExceptionprotected void testTFilefeaturesInternals(boolean useTags)
throws IOException
IOExceptionpublic void testCompressionOrdinance()