Modifier and Type | Class and Description |
---|---|
static class |
Utility.TableColumnNames
Schema for HBase table to be generated by generated and populated by
BulkDataGeneratorTool |
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_FAMILY |
static int |
MAX_SPLIT_COUNT |
static int |
SPLIT_PREFIX_LENGTH |
Modifier | Constructor and Description |
---|---|
private |
Utility()
Private Constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
createTable(org.apache.hadoop.hbase.client.Admin admin,
String tableName,
int splitCount,
Map<String,String> tableOptions)
Creates a pre-splitted HBase Table having single column family (
COLUMN_FAMILY ) and
sequential splits with SPLIT_PREFIX_LENGTH length character prefix. |
static void |
deleteTable(org.apache.hadoop.hbase.client.Admin admin,
String tableName) |
public static final String COLUMN_FAMILY
public static final int SPLIT_PREFIX_LENGTH
public static final int MAX_SPLIT_COUNT
private Utility()
public static void deleteTable(org.apache.hadoop.hbase.client.Admin admin, String tableName) throws IOException
IOException
public static void createTable(org.apache.hadoop.hbase.client.Admin admin, String tableName, int splitCount, Map<String,String> tableOptions) throws IOException
COLUMN_FAMILY
) and
sequential splits with SPLIT_PREFIX_LENGTH
length character prefix. Example: If a
table (TEST_TABLE_1) need to be generated with splitCount as 10, table would be created with
(10+1) regions with boundaries end-keys as (000000-000001, 000001-000002, 000002-000003, ....,
0000010-)admin
- - Admin object associated with HBase connectiontableName
- - Name of table to be createdsplitCount
- - Number of splits for the table (Number of regions will be splitCount + 1)tableOptions
- - Additional HBase metadata properties to be set for the tableIOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.