Package org.voltdb.types

Examples of org.voltdb.types.PlanNodeType


     * @param exps
     * @return
     */
    public static Collection<AbstractExpression> getExpressionsForPlanNode(AbstractPlanNode node, Set<AbstractExpression> exps, PlanNodeType... exclude) {
        final PlannerContext plannerContext = PlannerContext.singleton();
        final PlanNodeType node_type = node.getPlanNodeType();
        for (PlanNodeType e : exclude) {
            if (node_type == e)
                return (exps);
        } // FOR

View Full Code Here


        return sb.toString();
    }

    // maybe not worth polluting
    private String getValueTypeDotString() {
        PlanNodeType pnt = getPlanNodeType();
        if (isInline()) {
            return "fontcolor=\"white\" style=\"filled\" fillcolor=\"red\"";
        }
        if (pnt == PlanNodeType.SEND || pnt == PlanNodeType.RECEIVE) {
            return "fontcolor=\"white\" style=\"filled\" fillcolor=\"black\"";
View Full Code Here

        stringer.key(Members.PLAN_NODE_TYPE.name()).value(getPlanNodeType().toString());

        if (m_inlineNodes.size() > 0) {
            stringer.key(Members.INLINE_NODES.name()).array();

            PlanNodeType types[] = new PlanNodeType[m_inlineNodes.size()];
            int i = 0;
            for (PlanNodeType type : m_inlineNodes.keySet()) {
                types[i++] = type;
            }
            Arrays.sort(types);
View Full Code Here

        try {
            for( int i = 0; i < size; i++ ) {
                JSONObject jobj;
                jobj = jArray.getJSONObject(i);
                String nodeTypeStr = jobj.getString("PLAN_NODE_TYPE");
                PlanNodeType nodeType = PlanNodeType.get( nodeTypeStr );
                AbstractPlanNode apn = null;
                try {
                    apn = nodeType.getPlanNodeClass().newInstance();
                } catch (InstantiationException e) {
                    System.err.println( e.getMessage() );
                    e.printStackTrace();
                    return;
                } catch (IllegalAccessException e) {
View Full Code Here

        }
        else {
            for( int i = 0 ; i < size1 ; i++  ) {
                AbstractPlanNode pn1 = joinNodes1.get(i);
                AbstractPlanNode pn2 = joinNodes2.get(i);
                PlanNodeType pnt1 = pn1.getPlanNodeType();
                PlanNodeType pnt2 = pn2.getPlanNodeType();
                if( !pnt1.equals(pnt2) ) {
                    stringdiffPair.set( pn1.toString(), pn2.toString() );
                    messages.add( "Join Node Type diff:\n"+stringdiffPair.toString());
                }
            }
View Full Code Here

        p = pns.get(1).getChild(0);
        // inline aggregate
        assertTrue(p instanceof AbstractScanPlanNode);

        PlanNodeType aggType = PlanNodeType.HASHAGGREGATE;
        if (p instanceof IndexScanPlanNode &&
                ((IndexScanPlanNode)p).isForGroupingOnly() ) {
            aggType = PlanNodeType.AGGREGATE;
        }
        assertNotNull(p.getInlinePlanNode(aggType));
View Full Code Here

TOP

Related Classes of org.voltdb.types.PlanNodeType

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.