public class TestBulkloadBase extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestBulkloadBase.WalMatcher |
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
protected byte[] |
family1 |
protected byte[] |
family2 |
protected byte[] |
family3 |
protected org.apache.hadoop.hbase.wal.WAL |
log |
org.junit.rules.TestName |
name |
private byte[] |
randomBytes |
private static HBaseTestingUtility |
TEST_UTIL |
static org.junit.rules.TemporaryFolder |
testFolder |
protected Boolean |
useFileBasedSFT |
Constructor and Description |
---|
TestBulkloadBase(boolean useFileBasedSFT) |
Modifier and Type | Method and Description |
---|---|
void |
before() |
protected static org.hamcrest.Matcher<org.apache.hadoop.hbase.wal.WALEdit> |
bulkLogWalEdit(byte[] typeBytes,
byte[] tableName,
byte[] familyName,
List<String> storeFileNames) |
protected static org.hamcrest.Matcher<org.apache.hadoop.hbase.wal.WALEdit> |
bulkLogWalEditType(byte[] typeBytes) |
private String |
createHFileForFamilies(byte[] family) |
static Collection<Boolean> |
data() |
private static String |
generateUniqueName(String suffix) |
private List<org.apache.hadoop.hbase.util.Pair<byte[],String>> |
getBlankFamilyPaths() |
private String |
getNotExistFilePath() |
protected org.apache.hadoop.hbase.regionserver.HRegion |
testRegionWithFamilies(byte[]... families) |
protected org.apache.hadoop.hbase.regionserver.HRegion |
testRegionWithFamiliesAndSpecifiedTableName(org.apache.hadoop.hbase.TableName tableName,
byte[]... families) |
protected List<org.apache.hadoop.hbase.util.Pair<byte[],String>> |
withFamilyPathsFor(byte[]... families) |
protected org.apache.hadoop.hbase.util.Pair<byte[],String> |
withInvalidColumnFamilyButProperHFileLocation(byte[] family) |
protected org.apache.hadoop.hbase.util.Pair<byte[],String> |
withMissingHFileForFamily(byte[] family) |
public static org.junit.rules.TemporaryFolder testFolder
private static HBaseTestingUtility TEST_UTIL
protected final org.apache.hadoop.hbase.wal.WAL log
protected final org.apache.hadoop.conf.Configuration conf
private final byte[] randomBytes
protected final byte[] family1
protected final byte[] family2
protected final byte[] family3
protected Boolean useFileBasedSFT
public org.junit.rules.TestName name
public TestBulkloadBase(boolean useFileBasedSFT)
public static Collection<Boolean> data()
public void before() throws IOException
IOException
protected org.apache.hadoop.hbase.util.Pair<byte[],String> withMissingHFileForFamily(byte[] family)
private String getNotExistFilePath()
protected org.apache.hadoop.hbase.util.Pair<byte[],String> withInvalidColumnFamilyButProperHFileLocation(byte[] family) throws IOException
IOException
protected org.apache.hadoop.hbase.regionserver.HRegion testRegionWithFamiliesAndSpecifiedTableName(org.apache.hadoop.hbase.TableName tableName, byte[]... families) throws IOException
IOException
protected org.apache.hadoop.hbase.regionserver.HRegion testRegionWithFamilies(byte[]... families) throws IOException
IOException
private List<org.apache.hadoop.hbase.util.Pair<byte[],String>> getBlankFamilyPaths()
protected List<org.apache.hadoop.hbase.util.Pair<byte[],String>> withFamilyPathsFor(byte[]... families) throws IOException
IOException
private String createHFileForFamilies(byte[] family) throws IOException
IOException
private static String generateUniqueName(String suffix)
protected static org.hamcrest.Matcher<org.apache.hadoop.hbase.wal.WALEdit> bulkLogWalEditType(byte[] typeBytes)
protected static org.hamcrest.Matcher<org.apache.hadoop.hbase.wal.WALEdit> bulkLogWalEdit(byte[] typeBytes, byte[] tableName, byte[] familyName, List<String> storeFileNames)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.