Package org.voltdb

Examples of org.voltdb.ParameterSet


        // 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())
        };
        int nextCounters[] = new int[]{ 0, 0 };
       
        // Initialize the txn to simulate that it has started
        this.ts.initFirstRound(undoToken, nextBatch.length);
View Full Code Here


        // 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())
        };
        int nextCounters[] = new int[]{ 0, 0 };
       
        // Initialize the txn to simulate that it has started
        this.ts.initFirstRound(undoToken, nextBatch.length);
View Full Code Here

        this.client_callback = new RpcCallback<ClientResponseImpl>() {
            public void run(ClientResponseImpl parameter) {}
        };
        return this.testInit(txn_id,
                             base_partition,
                             new ParameterSet(proc_params),
                             predict_touchedPartitions, catalog_proc);
    }
View Full Code Here

        int base_partition = CollectionUtil.random(hstore_site.getLocalPartitionIds());
        PartitionSet predict_touchedPartitions = catalogContext.getAllPartitionIds();
        boolean predict_readOnly = false;
        boolean predict_canAbort = true;
        Procedure catalog_proc = catalogContext.procedures.getIgnoreCase("@NoOp");
        ParameterSet params = new ParameterSet();
        RpcCallback<ClientResponseImpl> client_callback = null;
       
        LocalTransaction ts = new LocalTransaction(hstore_site);
        ts.init(txnId, EstTime.currentTimeMillis(), clientHandle, base_partition,
                predict_touchedPartitions, predict_readOnly, predict_canAbort,
View Full Code Here

        int partition = CollectionUtil.random(remote_hstore_site.getLocalPartitionIds());
        predict_touchedPartitions.add(partition);
        boolean predict_readOnly = false;
        boolean predict_canAbort = true;
        Procedure catalog_proc = catalogContext.procedures.getIgnoreCase("@NoOp");
        ParameterSet params = new ParameterSet();
        RpcCallback<ClientResponseImpl> client_callback = null;
       
        LocalTransaction ts = new LocalTransaction(base_hstore_site);
        ts.init(txnId, EstTime.currentTimeMillis(), clientHandle, base_partition,
                predict_touchedPartitions, predict_readOnly, predict_canAbort,
View Full Code Here

        else if (hstore_conf.site.anticache_profiling == false) {
            String msg = "Unable to collect eviction history because 'site.anticache_profiling' is disabled";
            throw new VoltAbortException(msg);
        }
       
        ParameterSet params = new ParameterSet();
        return this.executeOncePerPartition(DISTRIBUTE_ID, AGGREGATE_ID, params);
    }
View Full Code Here

        else if (hstore_conf.site.anticache_profiling == false) {
            String msg = "Unable to collect evicted access history because 'site.anticache_profiling' is disabled";
            throw new VoltAbortException(msg);
        }
       
        ParameterSet params = new ParameterSet();
        return this.executeOncePerPartition(DISTRIBUTE_ID, AGGREGATE_ID, params);
    }
View Full Code Here

     * @throws VoltAbortException
     */
    public VoltTable[] run(String directory) throws VoltAbortException {
        final boolean debug = LOG.isDebugEnabled();
       
        final ParameterSet params = new ParameterSet(directory);
       
        // Generate a plan fragment for each site using the sub-tables
        final List<SynthesizedPlanFragment> pfs = new ArrayList<SynthesizedPlanFragment>();
        for (int i = 0; i < catalogContext.numberOfPartitions; i++) {
            int partition = i;
View Full Code Here

    }
   
    public VoltTable[] run() {
        return this.executeOncePerPartition(SysProcFragmentId.PF_quiesceDistribute,
                                            SysProcFragmentId.PF_quiesceAggregate,
                                            new ParameterSet());
    }
View Full Code Here

        DependencySet result = new DependencySet(SysProcFragmentId.PF_execStatus, vt);
        return (result);
    }

    public VoltTable[] run(int partitionId) {
        return executeLocal(SysProcFragmentId.PF_execStatus, new ParameterSet());
    }
View Full Code Here

TOP

Related Classes of org.voltdb.ParameterSet

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.