/** * Truncates a table. * @param ddlExecutor the {@link HBaseDDLExecutor} to use to communicate with HBase * @param tableId {@link TableId} for the specified table * @throws IOException */ public void truncateTable(HBaseDDLExecutor ddlExecutor, TableId tableId) throws IOException { TableName tableName = HTableNameConverter.toTableName(getTablePrefix(cConf), tableId); ddlExecutor.truncateTable(tableName.getNamespaceAsString(), tableName.getQualifierAsString()); }
/** * Truncates a table. * @param ddlExecutor the {@link HBaseDDLExecutor} to use to communicate with HBase * @param tableId {@link TableId} for the specified table * @throws IOException */ public void truncateTable(HBaseDDLExecutor ddlExecutor, TableId tableId) throws IOException { TableName tableName = HTableNameConverter.toTableName(getTablePrefix(cConf), tableId); ddlExecutor.truncateTable(tableName.getNamespaceAsString(), tableName.getQualifierAsString()); }