public class OfflineMetaRebuildTestCore extends Object
Modifier and Type | Field and Description |
---|---|
protected Configuration |
conf |
protected Connection |
connection |
protected Table |
htbl |
protected static Log |
LOG |
protected static byte[][] |
splits |
protected TableName |
table |
protected HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
OfflineMetaRebuildTestCore() |
Modifier and Type | Method and Description |
---|---|
protected HRegionInfo |
createRegion(Configuration conf,
Table htbl,
byte[] startKey,
byte[] endKey) |
protected void |
deleteRegion(Configuration conf,
Table tbl,
byte[] startKey,
byte[] endKey) |
protected HTableDescriptor[] |
getTables(Configuration configuration) |
protected int |
scanMeta()
Dumps hbase:meta table info
|
void |
setUpBefore() |
protected int |
tableRowCount(Configuration conf,
TableName table)
Returns the number of rows in a given table.
|
void |
tearDownAfter() |
protected void |
wipeOutMeta() |
protected static final Log LOG
protected HBaseTestingUtility TEST_UTIL
protected Configuration conf
protected Table htbl
protected static final byte[][] splits
protected TableName table
protected Connection connection
protected void deleteRegion(Configuration conf, Table tbl, byte[] startKey, byte[] endKey) throws IOException
IOException
protected HRegionInfo createRegion(Configuration conf, Table htbl, byte[] startKey, byte[] endKey) throws IOException
IOException
protected void wipeOutMeta() throws IOException
IOException
protected int tableRowCount(Configuration conf, TableName table) throws IOException
IOException
protected int scanMeta() throws IOException
IOException
protected HTableDescriptor[] getTables(Configuration configuration) throws IOException
IOException