public class MobTestUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected static char |
FIRST_CHAR |
protected static char |
LAST_CHAR |
Constructor and Description |
---|
MobTestUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
assertCellEquals(org.apache.hadoop.hbase.Cell firstKeyValue,
org.apache.hadoop.hbase.Cell secondKeyValue)
Compare two Cells only for their row family qualifier value
|
static void |
assertCellsValue(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.client.Scan scan,
byte[] expectedValue,
int expectedCount) |
static int |
countMobRows(HBaseTestingUtility util,
org.apache.hadoop.hbase.client.Table table)
Gets the number of rows in the given table.
|
static org.apache.hadoop.fs.Path |
generateMOBFileForRegion(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.client.ColumnFamilyDescriptor familyDescriptor,
String regionName) |
protected static String |
generateRandomString(int demoLength) |
private static void |
writeStoreFile(org.apache.hadoop.hbase.regionserver.StoreFileWriter writer,
byte[] fam,
byte[] qualifier) |
protected static void |
writeStoreFile(org.apache.hadoop.hbase.regionserver.StoreFileWriter writer,
String caseName) |
protected static final char FIRST_CHAR
protected static final char LAST_CHAR
public MobTestUtil()
protected static String generateRandomString(int demoLength)
protected static void writeStoreFile(org.apache.hadoop.hbase.regionserver.StoreFileWriter writer, String caseName) throws IOException
IOException
private static void writeStoreFile(org.apache.hadoop.hbase.regionserver.StoreFileWriter writer, byte[] fam, byte[] qualifier) throws IOException
IOException
public static void assertCellEquals(org.apache.hadoop.hbase.Cell firstKeyValue, org.apache.hadoop.hbase.Cell secondKeyValue)
public static void assertCellsValue(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Scan scan, byte[] expectedValue, int expectedCount) throws IOException
IOException
public static int countMobRows(HBaseTestingUtility util, org.apache.hadoop.hbase.client.Table table) throws IOException
table
- to get the scannerIOException
public static org.apache.hadoop.fs.Path generateMOBFileForRegion(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.client.ColumnFamilyDescriptor familyDescriptor, String regionName) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.