public class OfflineMetaRebuildTestCore extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
protected Connection |
connection |
protected Table |
htbl |
protected static byte[][] |
splits |
protected TableName |
table |
protected HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
OfflineMetaRebuildTestCore() |
| Modifier and Type | Method and Description |
|---|---|
protected RegionInfo |
createRegion(org.apache.hadoop.conf.Configuration conf,
Table htbl,
byte[] startKey,
byte[] endKey) |
protected void |
deleteRegion(org.apache.hadoop.conf.Configuration conf,
Table tbl,
byte[] startKey,
byte[] endKey) |
protected HTableDescriptor[] |
getTables(org.apache.hadoop.conf.Configuration configuration) |
protected int |
scanMeta()
Dumps hbase:meta table info
|
void |
setUpBefore() |
protected int |
tableRowCount(org.apache.hadoop.conf.Configuration conf,
TableName table)
Returns the number of rows in a given table.
|
void |
tearDownAfter() |
protected void |
wipeOutMeta() |
protected HBaseTestingUtility TEST_UTIL
protected org.apache.hadoop.conf.Configuration conf
protected static final byte[][] splits
protected Connection connection
public OfflineMetaRebuildTestCore()
public void setUpBefore() throws Exception
Exceptionpublic void tearDownAfter() throws Exception
Exceptionprotected void deleteRegion(org.apache.hadoop.conf.Configuration conf, Table tbl, byte[] startKey, byte[] endKey) throws IOException
IOExceptionprotected RegionInfo createRegion(org.apache.hadoop.conf.Configuration conf, Table htbl, byte[] startKey, byte[] endKey) throws IOException
IOExceptionprotected void wipeOutMeta() throws IOException
IOExceptionprotected int tableRowCount(org.apache.hadoop.conf.Configuration conf, TableName table) throws IOException
IOExceptionprotected int scanMeta() throws IOException
IOExceptionprotected HTableDescriptor[] getTables(org.apache.hadoop.conf.Configuration configuration) throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.