* @param preserveRegions keep the existing split points
* @return HTable for the new table
*/
public HTable truncateTable(final TableName tableName, final boolean preserveRegions) throws IOException {
Admin admin = getHBaseAdmin();
admin.truncateTable(tableName, preserveRegions);
return new HTable(getConfiguration(), tableName);
}
/**
* Truncate a table using the admin command.