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);
}
Aggregations