//
// First apply the partitioning plan to all the tables
//
for (Table catalog_tbl : this.plan.getTableEntries().keySet()) {
PartitionEntry entry = this.plan.getTableEntries().get(catalog_tbl);
Table new_catalog_tbl = new_catalog_db.getTables().get(catalog_tbl.getName());
switch (entry.getMethod()) {
case REPLICATION:
new_catalog_tbl.setIsreplicated(true);
break;
case HASH:
case MAP:
new_catalog_tbl.setIsreplicated(false);
Column new_catalog_col = new_catalog_tbl.getColumns().get(entry.getAttribute().getName());
new_catalog_tbl.setPartitioncolumn(new_catalog_col);
break;
default:
LOG.fatal("Unsupported partition type '" + entry.getMethod() + "'");
System.exit(1);
} // SWITCH
} // FOR
//