Package org.voltdb.planner

Examples of org.voltdb.planner.VerticalPartitionPlanner$VPPlannerProjectBuilder


            catalog_view = c.createMaterializedView();
        assert (catalog_view != null);
        assert (catalog_view.getGroupbycols().isEmpty() == false) : String.format("Missing columns for VerticalPartition view %s\n%s", catalog_view.fullName(), c);

        List<String> columnNames = c.getVerticalPartitionColumnNames();
        VerticalPartitionPlanner vp_planner = new VerticalPartitionPlanner(catalog_db, catalog_view);
        Map<Statement, Statement> optimized = null;
        try {
            optimized = vp_planner.generateOptimizedStatements();
        } catch (Exception ex) {
            throw new RuntimeException("Failed to generate optimized query plans:\n" + c, ex);
        }
        if (optimized != null) {
            c.addOptimizedQueries(optimized);
View Full Code Here


        }
       
        // Optimization: Vertical Partitioning
        if (m_enableVerticalPartitionOptimizations) {
            if (m_verticalPartitionPlanner == null) {
                m_verticalPartitionPlanner = new VerticalPartitionPlanner(CatalogUtil.getDatabase(m_catalog), true);
            }
            try {
                m_verticalPartitionPlanner.optimizeDatabase();
            } catch (Exception ex) {
                LOG.warn("Unexpected error", ex);
View Full Code Here

TOP

Related Classes of org.voltdb.planner.VerticalPartitionPlanner$VPPlannerProjectBuilder

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.