Package edu.brown.designer.partitioners.plan

Examples of edu.brown.designer.partitioners.plan.PartitionEntry


                        //
                        // Exclusion: Check whether this table is already
                        // partitioned on these columns
                        //
                        PartitionEntry pentry = plan.getTableEntries().get(catalog_tbl);
                        if (pentry == null) {
                            LOG.warn("PartitionEntry is null for " + catalog_tbl);
                            continue;
                            // } else if (pentry.getMethod() !=
                            // PartitionMethodType.REPLICATION &&
View Full Code Here


        //
        // 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

        //
View Full Code Here

TOP

Related Classes of edu.brown.designer.partitioners.plan.PartitionEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.