Package org.apache.hadoop.hbase.snapshot
Class MobSnapshotTestingUtils
java.lang.Object
org.apache.hadoop.hbase.snapshot.MobSnapshotTestingUtils
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
countMobRows
(org.apache.hadoop.hbase.client.Table table, byte[]... families) Return the number of rows in the given table.static org.apache.hadoop.hbase.client.Table
createMobTable
(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, byte[]... families) Create a Mob table.static void
createMobTable
(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, byte[][] splitKeys, int regionReplication, byte[]... families) static void
createMobTable
(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, byte[][] splitKeys, int regionReplication, String storeFileTracker, byte[]... families) static void
createMobTable
(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, byte[][] splitKeys, int regionReplication, String storeFileTracker, String cpClassName, byte[]... families) static void
createMobTable
(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, int regionReplication, byte[]... families) Create the Mob Table.static void
createMobTable
(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, int regionReplication, String storeFileTracker, byte[]... families) static void
createPreSplitMobTable
(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, int nRegions, byte[]... families) static void
verifyMobRowCount
(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, long expectedRows)
-
Constructor Details
-
MobSnapshotTestingUtils
public MobSnapshotTestingUtils()
-
-
Method Details
-
createMobTable
public static void createMobTable(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, int regionReplication, byte[]... families) throws IOException, InterruptedException Create the Mob Table.- Throws:
IOException
InterruptedException
-
createMobTable
public static void createMobTable(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, int regionReplication, String storeFileTracker, byte[]... families) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
createPreSplitMobTable
public static void createPreSplitMobTable(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, int nRegions, byte[]... families) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
createMobTable
public static void createMobTable(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, byte[][] splitKeys, int regionReplication, byte[]... families) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
createMobTable
public static void createMobTable(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, byte[][] splitKeys, int regionReplication, String storeFileTracker, byte[]... families) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
createMobTable
public static void createMobTable(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, byte[][] splitKeys, int regionReplication, String storeFileTracker, String cpClassName, byte[]... families) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
createMobTable
public static org.apache.hadoop.hbase.client.Table createMobTable(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, byte[]... families) throws IOException Create a Mob table.- Returns:
- An Table instance for the created table.
- Throws:
IOException
-
countMobRows
public static int countMobRows(org.apache.hadoop.hbase.client.Table table, byte[]... families) throws IOException Return the number of rows in the given table.- Throws:
IOException
-
verifyMobRowCount
public static void verifyMobRowCount(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, long expectedRows) throws IOException - Throws:
IOException
-