Examples of singlePartition()


Examples of org.voltdb.ProcInfo.singlePartition()

            info = new ProcInfoData();
            ProcInfo annotationInfo = procClass.getAnnotation(ProcInfo.class);
            if (annotationInfo != null) {
                info.partitionInfo = annotationInfo.partitionInfo();
                info.partitionParam = annotationInfo.partitionParam();
                info.singlePartition = annotationInfo.singlePartition();
                info.mapInputQuery = annotationInfo.mapInputQuery();
                // info.mapEmitTable = annotationInfo.mapEmitTable();
                info.reduceInputQuery = annotationInfo.reduceInputQuery();
                // info.reduceEmitTable = annotationInfo.reduceEmitTable();
            }
View Full Code Here

Examples of org.voltdb.ProcInfo.singlePartition()

            procedure.setId(this.getNextProcedureId());
            procedure.setClassname(procClass.getCanonicalName());
            procedure.setReadonly(readonly);
            procedure.setSystemproc(true);
            procedure.setHasjava(true);
            procedure.setSinglepartition(info.singlePartition());
            procedure.setEverysite(everysite);
            ProcedureCompiler.populateProcedureParameters(this, procClass, procedure);
           
            // ProcInfo.partitionParam overrides everything else
            if (info.partitionParam() != -1) {
View Full Code Here

Examples of org.voltdb.ProcInfo.singlePartition()

        }
    }

    public long run(long partitionParam, int[] opsForBatch1, int[] opsForBatch2) {
        ProcInfo pi = getClass().getAnnotation(ProcInfo.class);
        boolean singlePartition = (pi != null) && pi.singlePartition();

        // ensure the state is right
        voltQueueSQL(rRead, EXPECT_SCALAR_MATCH(1));
        voltQueueSQL(pRead, EXPECT_SCALAR_MATCH(1));
        voltExecuteSQL();
View Full Code Here

Examples of org.voltdb.ProcInfo.singlePartition()

                    throw compiler.new VoltCompilerException(msg);
                }
                // Prevent AutoGenerated DDL from including PARTITION PROCEDURE for this procedure.
                pa.classAnnotated = true;
                info.partitionInfo = annotationInfo.partitionInfo();
                info.singlePartition = annotationInfo.singlePartition();
            }
            else if (ddlInfo != null) {
                info = ddlInfo;
            }
        }
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.