Package org.voltdb.compiler

Examples of org.voltdb.compiler.CatalogBuilder.addProcedures()


    public void setUp()
    {
        try {
            CatalogBuilder catBuilder = new CatalogBuilder();
            catBuilder.addSchema(getClass().getResource("clientfeatures.sql"));
            catBuilder.addProcedures(ArbitraryDurationProc.class);

            boolean success = catBuilder.compile(Configuration.getPathToCatalogForTest("timeouts.jar"));
            assert(success);

            depBuilder = new DeploymentBuilder(1, 1, 0);
View Full Code Here


        if (MiscUtils.isPro()) {
            // build a catalog with a ton of indexes so catalog update will be slow
            CatalogBuilder builder = new CatalogBuilder();
            builder.addSchema(getClass().getResource("clientfeatures-wellindexed.sql"));
            builder.addProcedures(ArbitraryDurationProc.class);
            byte[] catalogToUpdate = builder.compileToBytes();
            assert(catalogToUpdate != null);

            // make a copy of the table from ddl for loading
            // (shouldn't have to do this, but for now, the table loader requires
View Full Code Here

        builder.addLiteralSchema(TableHelper.ddlForTable(versionT));
        // make tables name A partitioned and tables named B replicated
        if (newName.equalsIgnoreCase("A")) {
            int pkeyIndex = TableHelper.getBigintPrimaryKeyIndexIfExists(t2);
            builder.addPartitionInfo(newName, t2.getColumnName(pkeyIndex));
            builder.addProcedures(VerifySchemaChangedA.class);
        }
        else {
            builder.addProcedures(VerifySchemaChangedB.class);
        }
        byte[] catalogData = builder.compileToBytes();
View Full Code Here

            int pkeyIndex = TableHelper.getBigintPrimaryKeyIndexIfExists(t2);
            builder.addPartitionInfo(newName, t2.getColumnName(pkeyIndex));
            builder.addProcedures(VerifySchemaChangedA.class);
        }
        else {
            builder.addProcedures(VerifySchemaChangedB.class);
        }
        byte[] catalogData = builder.compileToBytes();
        assert(catalogData != null);

        long count = tupleCount(t1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.