Package org.voltdb

Examples of org.voltdb.SQLStmt$Frag


        // Tell the DependencyTracker that we're going to prefetch all of the WorkFragments
        this.depTracker.addPrefetchWorkFragment(this.ts, this.prefetchFragment, this.prefetchParams);
        assertEquals(1, this.depTrackerDbg.getPrefetchCounter(this.ts));
       
        // Now if we add in the same query again, it should automatically pick up the result
        SQLStmt nextBatch[] = {
            new SQLStmt(this.getStatement(this.catalog_proc, "getItemInfo")),
            new SQLStmt(this.catalog_stmt)
        };
        ParameterSet nextParams[] = {
            new ParameterSet(12345l),
            new ParameterSet(this.prefetchParams[0].toArray())
        };
View Full Code Here


            String stmt_debug[] = new String[this.batch_size];
           
            // FIXME
            // VoltProcedure voltProc = state.executor.getVoltProcedure(this.getProcedure().getName());
            // assert(voltProc != null);
            SQLStmt stmts[] = null; // voltProc.voltLastQueriesExecuted();
           
            // This won't work in test cases
//            assert(stmt_debug.length == stmts.length) :
//                String.format("Expected %d SQLStmts but we only got %d", stmt_debug.length, stmts.length);
           
View Full Code Here

            double currentBidAmount = results[1].getDouble(1);
            double currentBidMax = 0.0d;
            try {
                currentBidMax = results[1].getDouble(2);
            } catch (IllegalArgumentException ex) {
                SQLStmt last[] = voltLastQueriesExecuted();
                for (int i = 0; i < last.length; i++) {
                    LOG.error(last[i].getText() + "\n" +  results[i]);   
                } // FOR
                throw ex;
            }
View Full Code Here

        // Create a SQLStmt batch
        for (int i = 0; i < batch.length; i++) {
            Object raw_args[] = new Object[] {
                new Long(i + 1),    // U_ID
            };
            batch[i] = new SQLStmt(this.catalog_stmt, this.catalog_stmt.getMs_fragments());
            args[i] = VoltProcedure.getCleanParams(batch[i], raw_args);
            stmtCounters[i] = i;
        } // FOR
       
        Partition catalog_part = catalogContext.getPartitionById(LOCAL_PARTITION);
View Full Code Here

        for (int i = 0; i < batch.length; i++) {
            Object raw_args[] = new Object[] {
                new Long(i + 1),    // VLR_LOCATION
                new String("XXX")// SUB_NBR
            };
            this.batch[i] = new SQLStmt(catalog_stmt, catalog_stmt.getMs_fragments());
            this.params[i] = VoltProcedure.getCleanParams(batch[i], raw_args);
            this.stmtCounters[i] = i;
        } // FOR
    
        Partition catalog_part = catalogContext.getPartitionById(LOCAL_PARTITION);
View Full Code Here

            assert(this.catalog_stmt.getHas_multisited());
            fragments = this.catalog_stmt.getMs_fragments();
        }

        // Create a SQLStmt batch
        this.batch = new SQLStmt[] { new SQLStmt(this.catalog_stmt, fragments) };
        this.args = new ParameterSet[] { VoltProcedure.getCleanParams(this.batch[0], raw_args) };
        this.stmtCounters = new int[]{ 0 };
    }
View Full Code Here

            long collectorFragId = 0;
            if (statement.core.collectorFragment != null) {
                collectorFragId = ActivePlanRepository.loadOrAddRefPlanFragment(
                        statement.core.collectorHash, statement.core.collectorFragment, null);
            }
            SQLStmt stmt = SQLStmtAdHocHelper.createWithPlan(
                    statement.sql,
                    aggFragId,
                    statement.core.aggregatorHash,
                    true,
                    collectorFragId,
View Full Code Here

                    String.format("Unable to find SQL statement for found table %s: BAD",
                            tableName));
        }

        // create a SQLStmt instance on the fly (unusual to do)
        SQLStmt stmt = new SQLStmt(catStmt.getSqltext());
        m_runner.initSQLStmt(stmt, catStmt);

        if (catTable.getIsreplicated()) {
            long queued = 0;
            long executed = 0;
View Full Code Here

                    String.format("Unable to find SQL statement for found table %s: BAD",
                            tableName));
        }

        // create a SQLStmt instance on the fly (unusual to do)
        SQLStmt stmt = new SQLStmt(catStmt.getSqltext());
        m_runner.initSQLStmt(stmt, catStmt);

        long queued = 0;
        long executed = 0;
View Full Code Here

                    new VoltLogger("HOST").warn(msg);
            }

            f.setAccessible(true);

            SQLStmt stmt = null;

            try {
                stmt = (SQLStmt) f.get(procInstance);
            }
            // this exception handling here comes from other parts of the code
View Full Code Here

TOP

Related Classes of org.voltdb.SQLStmt$Frag

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.