public class MobSnapshotTestingUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MobSnapshotTestingUtils.SnapshotMock |
| Constructor and Description |
|---|
MobSnapshotTestingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
countMobRows(Table table,
byte[]... families)
Return the number of rows in the given table.
|
static Table |
createMobTable(HBaseTestingUtility util,
TableName tableName,
byte[]... families)
Create a Mob table.
|
static void |
createMobTable(HBaseTestingUtility util,
TableName tableName,
byte[][] splitKeys,
int regionReplication,
byte[]... families) |
static void |
createMobTable(HBaseTestingUtility util,
TableName tableName,
byte[][] splitKeys,
int regionReplication,
String cpClassName,
byte[]... families) |
static void |
createMobTable(HBaseTestingUtility util,
TableName tableName,
int regionReplication,
byte[]... families)
Create the Mob Table.
|
static void |
createPreSplitMobTable(HBaseTestingUtility util,
TableName tableName,
int nRegions,
byte[]... families) |
static void |
verifyMobRowCount(HBaseTestingUtility util,
TableName tableName,
long expectedRows) |
public MobSnapshotTestingUtils()
public static void createMobTable(HBaseTestingUtility util, TableName tableName, int regionReplication, byte[]... families) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static void createPreSplitMobTable(HBaseTestingUtility util, TableName tableName, int nRegions, byte[]... families) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static void createMobTable(HBaseTestingUtility util, TableName tableName, byte[][] splitKeys, int regionReplication, byte[]... families) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static void createMobTable(HBaseTestingUtility util, TableName tableName, byte[][] splitKeys, int regionReplication, String cpClassName, byte[]... families) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static Table createMobTable(HBaseTestingUtility util, TableName tableName, byte[]... families) throws IOException
util - tableName - families - IOExceptionpublic static int countMobRows(Table table, byte[]... families) throws IOException
IOExceptionpublic static void verifyMobRowCount(HBaseTestingUtility util, TableName tableName, long expectedRows) throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.