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 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.client.ColumnFamilyDescriptor cfd) |
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.client.ColumnFamilyDescriptor cfd,
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.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
IOException
private void init(String methodName, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.ColumnFamilyDescriptor cfd, boolean testStore) throws IOException
IOException
private void init(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.ColumnFamilyDescriptor cfd) throws IOException
IOException
public void testGetFromMemStore() throws IOException
IOException
public void testGetFromFiles() throws IOException
IOException
public void testGetReferencesFromFiles() throws IOException
IOException
public void testGetFromMemStoreAndFiles() throws IOException
IOException
public void testMobCellSizeThreshold() throws IOException
IOException
public void testCommitFile() throws Exception
Exception
public void testResolve() throws Exception
Exception
private void flush(int storeFilesSize) throws IOException
storeFilesSize
- IOException
private static void flushStore(org.apache.hadoop.hbase.regionserver.HMobStore store, long id) throws IOException
store
- id
- IOException
public void testMOBStoreEncryption() throws Exception
Exception
private void checkMobHFileEncrytption(Collection<org.apache.hadoop.hbase.regionserver.HStoreFile> storefiles)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.