Examples of updateOutputColumns()


Examples of org.voltdb.plannodes.AbstractPlanNode.updateOutputColumns()

         * "on top" of this work should calculate correct output
         * column state as nodes are added. (That is,
         * the recursive updateOutputColumns() ideally wouldn't
         * have other callers.)
         */
        root.updateOutputColumns(m_catalogDb);

        // PAVLO: Ok so now before this just assumed that we were going to stick a AggregatePlanNode on top
        // of the root that we sent it (which should be a AbstractScanPlanNode or a ReceievePlanNode).
        // But now because we are trying to impress John Hugg (and who isn't really?), we may actually perform
        // part of the aggregation at the remote partitions, so we need a buttom up approach for cleaning
View Full Code Here

Examples of org.voltdb.plannodes.AbstractPlanNode.updateOutputColumns()

        root = handleAggregationOperators(root);
       
//        if (PlanNodeUtil.getPlanNodes(root, ReceivePlanNode.class).isEmpty() == false) {
//            LOG.debug("PAVLO OPTIMIZATION:\n" + PlanNodeUtil.debug(root));
//        }
         root.updateOutputColumns(m_catalogDb);

        if ((subSelectRoot.getPlanNodeType() != PlanNodeType.INDEXSCAN ||
            ((IndexScanPlanNode) subSelectRoot).getSortDirection() == SortDirectionType.INVALID) &&
            m_parsedSelect.orderColumns.size() > 0) {
            root = addOrderBy(root);
View Full Code Here

Examples of org.voltdb.plannodes.DistinctPlanNode.updateOutputColumns()

                                          expr.getColumnName(),
                                          expr.getColumnAlias());
        distinctNode.setDistinctColumnGuid(distinctColumn.guid());

        distinctNode.addAndLinkChild(root);
        distinctNode.updateOutputColumns(m_catalogDb);
        return distinctNode;
    }

    /**
     * Get the unique set of names of all columns that are part of an index on
View Full Code Here

Examples of org.voltdb.plannodes.OrderByPlanNode.updateOutputColumns()

                                              col.alias);
            orderByNode.getSortColumnGuids().add(orderByCol.guid());
        }
        // connect the nodes to build the graph
        orderByNode.addAndLinkChild(root);
        orderByNode.updateOutputColumns(m_catalogDb);
        return orderByNode;
    }

    AbstractPlanNode addOffsetAndLimit(AbstractPlanNode root) {
        return null;
View Full Code Here

Examples of org.voltdb.plannodes.ReceivePlanNode.updateOutputColumns()

        ReceivePlanNode recvNode = new ReceivePlanNode(m_context, PlanAssembler.getNextPlanNodeId());
        recvNode.addAndLinkChild(sendNode);

        // receive node requires the schema of its output table
        recvNode.updateOutputColumns(m_db);
        return recvNode;
    }

    /**
     * Given an access path, build the single-site or distributed plan that will
View Full Code Here

Examples of org.voltdb.plannodes.ReceivePlanNode.updateOutputColumns()

            AbstractPlanNode combineNode = insertCountInDMLPlan(deleteNode);
            sendNode.addAndLinkChild(combineNode);

            // fix the receive node's output columns
            recvNode.updateOutputColumns(m_catalogDb);
            /*
             * recvNode.getOutputColumnNames().clear();
             * recvNode.getOutputColumnSizes().clear();
             * recvNode.getOutputColumnTypes().clear(); for (OutputColumnInfo
             * oci : recvNode.getOutputColumnGUIDs()) {
View Full Code Here

Examples of org.voltdb.plannodes.ReceivePlanNode.updateOutputColumns()

            AbstractPlanNode countNode = insertCountInDMLPlan(updateNode);
            sendNode.addAndLinkChild(countNode);

            // fix the receive node's output columns
            recvNode.updateOutputColumns(m_catalogDb);
            /*
             * recvNode.getOutputColumnNames().clear();
             * recvNode.getOutputColumnSizes().clear();
             * recvNode.getOutputColumnTypes().clear(); for (OutputColumnInfo
             * oci : recvNode.getOutputColumnGUIDs()) {
View Full Code Here

Examples of org.voltdb.plannodes.ReceivePlanNode.updateOutputColumns()

            ReceivePlanNode recvNode = new ReceivePlanNode(m_context, getNextPlanNodeId());
            recvNode.addAndLinkChild(sendNode);
            rootNode = recvNode;

            // receive node requires the schema of its output table
            recvNode.updateOutputColumns(m_catalogDb);

            // add a count and send on top of the union
            rootNode = addSumAndSendToDMLNode(rootNode, targetTable.getIsreplicated());
           
        } else if (INCLUDE_SEND_FOR_ALL) {
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.