Search in sources :

Example 11 with TableDescriptor

use of io.cdap.cdap.spi.hbase.TableDescriptor in project cdap by caskdata.

the class HBase10CDHTableUtil method modifyTable.

@Override
public void modifyTable(HBaseDDLExecutor ddlExecutor, HTableDescriptor tableDescriptor) throws IOException {
    Preconditions.checkArgument(ddlExecutor != null, "HBaseDDLExecutor should not be null");
    Preconditions.checkArgument(tableDescriptor != null, "Table descriptor should not be null.");
    TableName tableName = tableDescriptor.getTableName();
    TableDescriptor tbd = HBase10CDHTableDescriptorUtil.getTableDescriptor(tableDescriptor);
    ddlExecutor.modifyTable(tableName.getNamespaceAsString(), tableName.getQualifierAsString(), tbd);
}
Also used : TableName(org.apache.hadoop.hbase.TableName) HTableDescriptor(org.apache.hadoop.hbase.HTableDescriptor) TableDescriptor(io.cdap.cdap.spi.hbase.TableDescriptor)

Aggregations

TableDescriptor (io.cdap.cdap.spi.hbase.TableDescriptor)11 HTableDescriptor (org.apache.hadoop.hbase.HTableDescriptor)11 ColumnFamilyDescriptor (io.cdap.cdap.spi.hbase.ColumnFamilyDescriptor)5 CoprocessorDescriptor (io.cdap.cdap.spi.hbase.CoprocessorDescriptor)5 HashSet (java.util.HashSet)5 HColumnDescriptor (org.apache.hadoop.hbase.HColumnDescriptor)5 TableName (org.apache.hadoop.hbase.TableName)5