Package org.voltdb

Examples of org.voltdb.ParameterSet


                // XXX pfs[0].siteId = siteId;
                pfs[0].destPartitionId = siteId;
                pfs[0].outputDependencyIds = new int[] { result_dependency_id };
                pfs[0].inputDependencyIds = new int[] {};
                pfs[0].multipartition = false;
                ParameterSet params = new ParameterSet();
                params.setParameters(tableName, result_dependency_id, table, allowExport);
                pfs[0].parameters = params;

                int final_dependency_id = TableSaveFileState.getNextDependencyId();
                pfs[1] = new SynthesizedPlanFragment();
                pfs[1].fragmentId = SysProcFragmentId.PF_restoreSendReplicatedTableResults;
                pfs[1].outputDependencyIds = new int[] { final_dependency_id };
                pfs[1].inputDependencyIds = new int[] { result_dependency_id };
                pfs[1].multipartition = false;
                ParameterSet result_params = new ParameterSet();
                result_params.setParameters(final_dependency_id);
                pfs[1].parameters = result_params;
                LOG.trace("Sending replicated table: " + tableName + " to site id:" + siteId);
                results = executeSysProcPlanFragments(pfs, final_dependency_id);
            }
View Full Code Here


                // XXX pfs[pfs_index].siteId = site_id;
                pfs[pfs_index].destPartitionId = site_id;
                pfs[pfs_index].multipartition = false;
                pfs[pfs_index].outputDependencyIds = new int[] { dependencyIds[pfs_index] };
                pfs[pfs_index].inputDependencyIds = new int[] {};
                ParameterSet params = new ParameterSet();
                params.setParameters(tableName, partition_id, dependencyIds[pfs_index], partitioned_tables[partition_id], allowExport);
                pfs[pfs_index].parameters = params;
                ++pfs_index;
            }

            int result_dependency_id = TableSaveFileState.getNextDependencyId();
            pfs[sites_to_partitions.size()] = new SynthesizedPlanFragment();
            pfs[sites_to_partitions.size()].fragmentId = SysProcFragmentId.PF_restoreSendPartitionedTableResults;
            pfs[sites_to_partitions.size()].multipartition = false;
            pfs[sites_to_partitions.size()].outputDependencyIds = new int[] { result_dependency_id };
            pfs[sites_to_partitions.size()].inputDependencyIds = dependencyIds;
            ParameterSet params = new ParameterSet();
            params.setParameters(result_dependency_id);
            pfs[sites_to_partitions.size()].parameters = params;
            results = executeSysProcPlanFragments(pfs, result_dependency_id);

        } catch (IOException e) {
            VoltTable result = PrivateVoltTableFactory.createUninitializedVoltTable();
View Full Code Here

        pfs[0] = new SynthesizedPlanFragment();
        pfs[0].fragmentId = SysProcFragmentId.PF_snapshotScan;
        pfs[0].outputDependencyIds = new int[] { DEP_snapshotScan };
        pfs[0].multipartition = true;
        ParameterSet params = new ParameterSet();
        params.setParameters(path);
        pfs[0].parameters = params;

        pfs[1] = new SynthesizedPlanFragment();
        pfs[1].fragmentId = SysProcFragmentId.PF_snapshotScanResults;
        pfs[1].outputDependencyIds = new int[] { DEP_snapshotScanResults };
        pfs[1].inputDependencyIds = new int[] { DEP_snapshotScan };
        pfs[1].multipartition = false;
        pfs[1].parameters = new ParameterSet();

        VoltTable[] results;
        results = executeSysProcPlanFragments(pfs, DEP_snapshotScanResults);
        return results;
    }
View Full Code Here

        pfs[0] = new SynthesizedPlanFragment();
        pfs[0].fragmentId = SysProcFragmentId.PF_snapshotDigestScan;
        pfs[0].outputDependencyIds = new int[] { DEP_snapshotDigestScan };
        pfs[0].multipartition = true;
        ParameterSet params = new ParameterSet();
        params.setParameters(path);
        pfs[0].parameters = params;

        pfs[1] = new SynthesizedPlanFragment();
        pfs[1].fragmentId = SysProcFragmentId.PF_snapshotDigestScanResults;
        pfs[1].outputDependencyIds = new int[] { DEP_snapshotDigestScanResults };
        pfs[1].inputDependencyIds = new int[] { DEP_snapshotDigestScan };
        pfs[1].multipartition = false;
        pfs[1].parameters = new ParameterSet();

        VoltTable[] results;
        results = executeSysProcPlanFragments(pfs, DEP_snapshotDigestScanResults);
        return results;
    }
View Full Code Here

        pfs[0] = new SynthesizedPlanFragment();
        pfs[0].fragmentId = SysProcFragmentId.PF_hostDiskFreeScan;
        pfs[0].outputDependencyIds = new int[] { DEP_hostDiskFreeScan };
        pfs[0].multipartition = true;
        ParameterSet params = new ParameterSet();
        params.setParameters(path);
        pfs[0].parameters = params;

        pfs[1] = new SynthesizedPlanFragment();
        pfs[1].fragmentId = SysProcFragmentId.PF_hostDiskFreeScanResults;
        pfs[1].outputDependencyIds = new int[] { DEP_hostDiskFreeScanResults };
        pfs[1].inputDependencyIds = new int[] { DEP_hostDiskFreeScan };
        pfs[1].multipartition = false;
        pfs[1].parameters = new ParameterSet();

        VoltTable[] results;
        results = executeSysProcPlanFragments(pfs, DEP_hostDiskFreeScanResults);
        return results;
    }
View Full Code Here

        return nativeTableHashCode( pointer, tableId);
    }

    @Override
    public int hashinate(Object value, int partitionCount) {
        ParameterSet parameterSet = new ParameterSet(true);
        parameterSet.setParameters(value);

        // serialize the param set
        fsForParameterSet.clear();
        try {
            parameterSet.writeExternal(fsForParameterSet);
        } catch (final IOException exception) {
            throw new RuntimeException(exception); // can't happen
        }

        return nativeHashinate(this.pointer, partitionCount);
View Full Code Here

        pfs[0] = new SynthesizedPlanFragment();
        pfs[0].fragmentId = SysProcFragmentId.PF_saveTest;
        pfs[0].outputDependencyIds = new int[] { DEP_saveTest };
        pfs[0].inputDependencyIds = new int[] {};
        pfs[0].multipartition = true;
        ParameterSet params = new ParameterSet();
        params.setParameters(filePath, fileNonce);
        pfs[0].parameters = params;

        // This fragment aggregates the save-to-disk sanity check results
        pfs[1] = new SynthesizedPlanFragment();
        pfs[1].fragmentId = SysProcFragmentId.PF_saveTestResults;
        pfs[1].outputDependencyIds = new int[] { DEP_saveTestResults };
        pfs[1].inputDependencyIds = new int[] { DEP_saveTest };
        pfs[1].multipartition = false;
        pfs[1].parameters = new ParameterSet();

        VoltTable[] results;
        results = executeSysProcPlanFragments(pfs, DEP_saveTestResults);
        return results;
    }
View Full Code Here

        pfs[0] = new SynthesizedPlanFragment();
        pfs[0].fragmentId = SysProcFragmentId.PF_createSnapshotTargets;
        pfs[0].outputDependencyIds = new int[] { DEP_createSnapshotTargets };
        pfs[0].inputDependencyIds = new int[] {};
        pfs[0].multipartition = true;
        ParameterSet params = new ParameterSet();
        params.setParameters(filePath, fileNonce, startTime, block);
        pfs[0].parameters = params;

        // This fragment aggregates the save-to-disk sanity check results
        pfs[1] = new SynthesizedPlanFragment();
        pfs[1].fragmentId = SysProcFragmentId.PF_createSnapshotTargetsResults;
        pfs[1].outputDependencyIds = new int[] { DEP_createSnapshotTargetsResults };
        pfs[1].inputDependencyIds = new int[] { DEP_createSnapshotTargets };
        pfs[1].multipartition = false;
        pfs[1].parameters = new ParameterSet();

        VoltTable[] results;
        results = executeSysProcPlanFragments(pfs, DEP_createSnapshotTargetsResults);
        return results;
    }
View Full Code Here

    }

    public VoltTable[] run() {
        // Blast that mofo and get the catalog for the client
        final SynthesizedPlanFragment pfs[] = new SynthesizedPlanFragment[1];
        final ParameterSet params = new ParameterSet();
        pfs[0] = new SynthesizedPlanFragment();
        pfs[0].fragmentId = SysProcFragmentId.PF_getCatalog;
        pfs[0].inputDependencyIds = new int[] { };
        pfs[0].outputDependencyIds = new int[] { SysProcFragmentId.PF_getCatalog };
        pfs[0].multipartition = false;
View Full Code Here

        assertNotNull(catalog_stmt_param);
       
        TransactionTrace txn_trace = CollectionUtil.first(workload.getTraces(catalog_proc));
        assertNotNull(txn_trace);
       
        ParameterSet params = new ParameterSet(txn_trace.getParams());
        for (ProcParameter catalog_param : catalog_proc.getParameters()) {
            if (catalog_param.getIsarray()) {
                Object inner[] = (Object[])params.toArray()[catalog_param.getIndex()];
                for (int i = 0; i < inner.length; i++) {
                    ParameterMapping pm = new ParameterMapping(catalog_stmt, 0, catalog_stmt_param, catalog_param, i, 1.0d);
                    assertTrue(this.checker.equalParameters(params, pm, params, pm));
                } // FOR
            } else {
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.