private RelationalNode prepareToAdd(PlanNode node, RelationalNode processNode) { // Set the output elements from the plan node List cols = (List) node.getProperty(NodeConstants.Info.OUTPUT_COLS); processNode.setElements(cols); // Set the Cost Estimates Number estimateNodeCardinality = (Number) node.getProperty(NodeConstants.Info.EST_CARDINALITY); processNode.setEstimateNodeCardinality(estimateNodeCardinality); Number estimateNodeSetSize = (Number) node.getProperty(NodeConstants.Info.EST_SET_SIZE); processNode.setEstimateNodeSetSize(estimateNodeSetSize); Number estimateDepAccessCardinality = (Number) node.getProperty(NodeConstants.Info.EST_DEP_CARDINALITY); processNode.setEstimateDepAccessCardinality(estimateDepAccessCardinality); Number estimateDepJoinCost = (Number) node.getProperty(NodeConstants.Info.EST_DEP_JOIN_COST); processNode.setEstimateDepJoinCost(estimateDepJoinCost); Number estimateJoinCost = (Number) node.getProperty(NodeConstants.Info.EST_JOIN_COST); processNode.setEstimateJoinCost(estimateJoinCost); return processNode; }