Package org.voltdb.compiler

Examples of org.voltdb.compiler.PlannerTool


        String serializedCatalog = CatalogUtil.getSerializedCatalogStringFromJar(CatalogUtil.loadAndUpgradeCatalogFromJar(bytes).getFirst());
        Catalog catalog = new Catalog();
        catalog.execute(serializedCatalog);
        CatalogContext context = new CatalogContext(0, 0, catalog, bytes, null, 0, 0);

        m_pt = new PlannerTool(context.cluster, context.database, 0);

        AdHocPlannedStatement result = null;
        result = m_pt.planSqlForTest("select * from warehouse;");
        System.out.println(result);

View Full Code Here


        assertNotNull(serializedCatalog);
        Catalog c = new Catalog();
        c.execute(serializedCatalog);
        CatalogContext context = new CatalogContext(0, 0, c, bytes, null, 0, 0);

        m_pt = new PlannerTool(context.cluster, context.database, 0);

        // Bad DDL would kill the planner before it starts and this query
        // would return a Stream Closed error
        m_pt.planSqlForTest("select * from A;");
    }
View Full Code Here

        procedures = database.getProcedures();
        tables = database.getTables();
        authSystem = new AuthSystem(database, cluster.getSecurityenabled());
        this.deploymentHash = deploymentHash;
        m_jdbc = new JdbcDatabaseMetaDataGenerator(catalog, m_jarfile);
        m_ptool = new PlannerTool(cluster, database, version);
        catalogVersion = version;

        if (procedures != null) {
            for (Procedure proc : procedures) {
                if (proc.getSinglepartition()) {
View Full Code Here

        byte[] bytes = MiscUtils.fileToBytes(new File(config.m_pathToCatalog));
        String serializedCatalog = CatalogUtil.getSerializedCatalogStringFromJar(CatalogUtil.loadAndUpgradeCatalogFromJar(bytes).getFirst());
        Catalog catalog = new Catalog();
        catalog.execute(serializedCatalog);
        CatalogContext context = new CatalogContext(0, 0, catalog, bytes, null, 0, 0);
        m_pt = new PlannerTool(context.cluster, context.database, 0);
    }
View Full Code Here

TOP

Related Classes of org.voltdb.compiler.PlannerTool

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.