public class HTestConst extends Object
HConstants
but for tests. Also provides some simple static utility functions
to generate test data.Modifier and Type | Field and Description |
---|---|
static byte[] |
DEFAULT_CF_BYTES |
static String |
DEFAULT_CF_STR |
static Set<String> |
DEFAULT_CF_STR_SET |
static byte[] |
DEFAULT_QUALIFIER_BYTES |
static String |
DEFAULT_QUALIFIER_STR |
static byte[] |
DEFAULT_ROW_BYTES |
static String |
DEFAULT_ROW_STR |
static org.apache.hadoop.hbase.TableName |
DEFAULT_TABLE |
static byte[] |
DEFAULT_TABLE_BYTES |
static String |
DEFAULT_TABLE_STR |
static byte[] |
DEFAULT_VALUE_BYTES |
static String |
DEFAULT_VALUE_STR |
private static char |
FIRST_CHAR |
private static char |
LAST_CHAR |
private static byte[] |
START_KEY_BYTES |
Modifier | Constructor and Description |
---|---|
private |
HTestConst() |
Modifier and Type | Method and Description |
---|---|
static long |
addContent(org.apache.hadoop.hbase.regionserver.Region r,
byte[] columnFamily) |
static long |
addContent(org.apache.hadoop.hbase.regionserver.Region r,
byte[] columnFamily,
byte[] column)
Add content to region
r on the passed column column . |
static long |
addContent(org.apache.hadoop.hbase.client.Table updater,
String columnFamily)
Add content to region
r on the passed column column . |
static long |
addContent(org.apache.hadoop.hbase.client.Table updater,
String columnFamily,
byte[] startKeyBytes,
byte[] endKey)
Add content to region
r on the passed column column . |
static long |
addContent(org.apache.hadoop.hbase.client.Table updater,
String family,
String column) |
static long |
addContent(org.apache.hadoop.hbase.client.Table updater,
String family,
String column,
byte[] startKeyBytes,
byte[] endKey) |
static long |
addContent(org.apache.hadoop.hbase.client.Table updater,
String columnFamily,
String column,
byte[] startKeyBytes,
byte[] endKey,
long ts)
Add content to region
r on the passed column column . |
static byte[][] |
makeNAscii(byte[] base,
int n)
Generate the given number of unique byte sequences by appending numeric suffixes (ASCII
representations of decimal numbers).
|
public static final String DEFAULT_TABLE_STR
public static final byte[] DEFAULT_TABLE_BYTES
public static final org.apache.hadoop.hbase.TableName DEFAULT_TABLE
public static final String DEFAULT_CF_STR
public static final byte[] DEFAULT_CF_BYTES
public static final Set<String> DEFAULT_CF_STR_SET
public static final String DEFAULT_ROW_STR
public static final byte[] DEFAULT_ROW_BYTES
public static final String DEFAULT_QUALIFIER_STR
public static final byte[] DEFAULT_QUALIFIER_BYTES
public static String DEFAULT_VALUE_STR
public static byte[] DEFAULT_VALUE_BYTES
private static final char FIRST_CHAR
private static final char LAST_CHAR
private static final byte[] START_KEY_BYTES
private HTestConst()
public static byte[][] makeNAscii(byte[] base, int n)
public static long addContent(org.apache.hadoop.hbase.regionserver.Region r, byte[] columnFamily, byte[] column) throws IOException
r
on the passed column column
. Adds data of the
from 'aaa', 'aab', etc where key and value are the same.IOException
public static long addContent(org.apache.hadoop.hbase.regionserver.Region r, byte[] columnFamily) throws IOException
IOException
public static long addContent(org.apache.hadoop.hbase.client.Table updater, String columnFamily) throws IOException
r
on the passed column column
. Adds data of the
from 'aaa', 'aab', etc where key and value are the same.IOException
public static long addContent(org.apache.hadoop.hbase.client.Table updater, String family, String column) throws IOException
IOException
public static long addContent(org.apache.hadoop.hbase.client.Table updater, String columnFamily, byte[] startKeyBytes, byte[] endKey) throws IOException
r
on the passed column column
. Adds data of the
from 'aaa', 'aab', etc where key and value are the same.IOException
public static long addContent(org.apache.hadoop.hbase.client.Table updater, String family, String column, byte[] startKeyBytes, byte[] endKey) throws IOException
IOException
public static long addContent(org.apache.hadoop.hbase.client.Table updater, String columnFamily, String column, byte[] startKeyBytes, byte[] endKey, long ts) throws IOException
r
on the passed column column
. Adds data of the
from 'aaa', 'aab', etc where key and value are the same.IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.