java.lang.Object
org.apache.hadoop.hbase.util.bulkdatagenerator.Utility

public final class Utility extends Object
  • Field Details

  • Constructor Details

    • Utility

      private Utility()
      Private Constructor
  • Method Details

    • deleteTable

      public static void deleteTable(org.apache.hadoop.hbase.client.Admin admin, String tableName) throws IOException
      Throws:
      IOException
    • createTable

      public static void createTable(org.apache.hadoop.hbase.client.Admin admin, String tableName, int splitCount, Map<String,String> tableOptions) throws IOException
      Creates a pre-splitted HBase Table having single column family (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-)
      Parameters:
      admin - - Admin object associated with HBase connection
      tableName - - Name of table to be created
      splitCount - - Number of splits for the table (Number of regions will be splitCount + 1)
      tableOptions - - Additional HBase metadata properties to be set for the table
      Throws:
      IOException