public class TestHMobStore extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private Date |
currentDate |
private String |
DIR |
private List<org.apache.hadoop.hbase.Cell> |
expected |
private byte[] |
family |
private org.apache.hadoop.fs.FileSystem |
fs |
private org.apache.hadoop.hbase.client.Get |
get |
private org.apache.hadoop.hbase.HColumnDescriptor |
hcd |
private long |
id |
static org.slf4j.Logger |
LOG |
private org.apache.hadoop.fs.Path |
mobFilePath |
org.junit.rules.TestName |
name |
private byte[] |
qf1 |
private byte[] |
qf2 |
private byte[] |
qf3 |
private byte[] |
qf4 |
private byte[] |
qf5 |
private byte[] |
qf6 |
private NavigableSet<byte[]> |
qualifiers |
private org.apache.hadoop.hbase.regionserver.HRegion |
region |
private byte[] |
row |
private byte[] |
row2 |
private org.apache.hadoop.hbase.Cell |
seekKey1 |
private org.apache.hadoop.hbase.Cell |
seekKey2 |
private org.apache.hadoop.hbase.Cell |
seekKey3 |
private org.apache.hadoop.hbase.regionserver.HMobStore |
store |
private byte[] |
table |
private static HBaseTestingUtility |
TEST_UTIL |
private byte[] |
value |
private byte[] |
value2 |
| Constructor and Description |
|---|
TestHMobStore() |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkMobHFileEncrytption(Collection<org.apache.hadoop.hbase.regionserver.HStoreFile> storefiles) |
private void |
flush(int storeFilesSize)
Flush the memstore
|
private static void |
flushStore(org.apache.hadoop.hbase.regionserver.HMobStore store,
long id)
Flush the memstore
|
private void |
init(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.HColumnDescriptor hcd) |
private void |
init(String methodName,
org.apache.hadoop.conf.Configuration conf,
boolean testStore) |
private void |
init(String methodName,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.HColumnDescriptor hcd,
boolean testStore) |
private void |
init(String methodName,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.HTableDescriptor htd,
org.apache.hadoop.hbase.HColumnDescriptor hcd,
boolean testStore) |
void |
setUp()
Setup
|
void |
testCommitFile() |
void |
testGetFromFiles()
Getting MOB data from files
|
void |
testGetFromMemStore()
Getting data from memstore
|
void |
testGetFromMemStoreAndFiles()
Getting data from memstore and files
|
void |
testGetReferencesFromFiles()
Getting the reference data from files
|
void |
testMobCellSizeThreshold()
Getting data from memstore and files
|
void |
testMOBStoreEncryption() |
void |
testResolve() |
public static final HBaseClassTestRule CLASS_RULE
public static final org.slf4j.Logger LOG
public org.junit.rules.TestName name
private org.apache.hadoop.hbase.regionserver.HMobStore store
private org.apache.hadoop.hbase.regionserver.HRegion region
private org.apache.hadoop.hbase.HColumnDescriptor hcd
private org.apache.hadoop.fs.FileSystem fs
private byte[] table
private byte[] family
private byte[] row
private byte[] row2
private byte[] qf1
private byte[] qf2
private byte[] qf3
private byte[] qf4
private byte[] qf5
private byte[] qf6
private byte[] value
private byte[] value2
private org.apache.hadoop.fs.Path mobFilePath
private Date currentDate
private org.apache.hadoop.hbase.Cell seekKey1
private org.apache.hadoop.hbase.Cell seekKey2
private org.apache.hadoop.hbase.Cell seekKey3
private NavigableSet<byte[]> qualifiers
private long id
private org.apache.hadoop.hbase.client.Get get
private static final HBaseTestingUtility TEST_UTIL
public TestHMobStore()
private void init(String methodName, org.apache.hadoop.conf.Configuration conf, boolean testStore) throws IOException
IOExceptionprivate void init(String methodName, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.HColumnDescriptor hcd, boolean testStore) throws IOException
IOExceptionprivate void init(String methodName, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.HTableDescriptor htd, org.apache.hadoop.hbase.HColumnDescriptor hcd, boolean testStore) throws IOException
IOExceptionprivate void init(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.HColumnDescriptor hcd) throws IOException
IOExceptionpublic void testGetFromMemStore() throws IOException
IOExceptionpublic void testGetFromFiles() throws IOException
IOExceptionpublic void testGetReferencesFromFiles() throws IOException
IOExceptionpublic void testGetFromMemStoreAndFiles() throws IOException
IOExceptionpublic void testMobCellSizeThreshold() throws IOException
IOExceptionpublic void testCommitFile() throws Exception
Exceptionpublic void testResolve() throws Exception
Exceptionprivate void flush(int storeFilesSize) throws IOException
storeFilesSize - IOExceptionprivate static void flushStore(org.apache.hadoop.hbase.regionserver.HMobStore store, long id) throws IOException
store - id - IOExceptionpublic void testMOBStoreEncryption() throws Exception
Exceptionprivate void checkMobHFileEncrytption(Collection<org.apache.hadoop.hbase.regionserver.HStoreFile> storefiles)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.