public class TestStoreFile extends HBaseTestCase
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 |
|---|
TestStoreFile() |
| 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 |
testBasicHalfMapFile()
Write a file and then assert that we can read from top and bottom halves
using two HalfMapFiles.
|
void |
testBloomFilter() |
void |
testBloomTypes() |
void |
testCacheOnWriteEvictOnClose() |
void |
testDataBlockEncodingMetaData()
Check if data block encoding information is saved correctly in HFile's
file info.
|
void |
testDeleteFamilyBloomFilter() |
void |
testHFileLink() |
void |
testMultipleTimestamps()
Test to ensure correctness when using StoreFile with multiple timestamps
|
void |
testReference()
Test that our mechanism of writing store files in one region to reference
store files in other regions works.
|
void |
testReferenceToHFileLink()
This test creates an hfile and then the dir structures and files to verify that references
to hfilelinks (created by snapshot clones) can be properly interpreted.
|
void |
testReseek()
Test for HBASE-8012
|
void |
testSeqIdComparator() |
static void |
writeStoreFile(StoreFile.Writer writer,
byte[] fam,
byte[] qualifier) |
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 testBasicHalfMapFile()
throws Exception
Exceptionpublic static void writeStoreFile(StoreFile.Writer writer, byte[] fam, byte[] qualifier) throws IOException
IOExceptionpublic void testReference()
throws IOException
IOExceptionpublic void testHFileLink()
throws IOException
IOExceptionpublic void testReferenceToHFileLink()
throws IOException
IOExceptionpublic void testDeleteFamilyBloomFilter()
throws Exception
Exceptionpublic void testSeqIdComparator()
public void testMultipleTimestamps()
throws IOException
IOExceptionpublic void testCacheOnWriteEvictOnClose()
throws Exception
Exceptionpublic void testDataBlockEncodingMetaData()
throws IOException
IOException