function = (ASTNode)function.getChild(0); doPhase1GetAllAggregations(function, aggregationTrees, wdwFns, null);
function = (ASTNode)function.getChild(0); doPhase1GetAllAggregations(function, aggregationTrees, wdwFns);
doPhase1GetAllAggregations((ASTNode) child, aggregations, wdwFns, expressionTree); doPhase1GetAllAggregations((ASTNode) expressionTree.getChild(i), aggregations, wdwFns, wndParent);
doPhase1GetAllAggregations((ASTNode) expressionTree.getChild(expressionTree.getChildCount()-1), aggregations, wdwFns); return; doPhase1GetAllAggregations((ASTNode) expressionTree.getChild(i), aggregations, wdwFns);
private LinkedHashMap<String, ASTNode> doPhase1GetAggregationsFromSelect( ASTNode selExpr) { // Iterate over the selects search for aggregation Trees. // Use String as keys to eliminate duplicate trees. LinkedHashMap<String, ASTNode> aggregationTrees = new LinkedHashMap<String, ASTNode>(); for (int i = 0; i < selExpr.getChildCount(); ++i) { ASTNode sel = (ASTNode) selExpr.getChild(i).getChild(0); doPhase1GetAllAggregations(sel, aggregationTrees); } return aggregationTrees; }
function = (ASTNode)function.getChild(0); doPhase1GetAllAggregations(function, aggregationTrees, wdwFns);
doPhase1GetAllAggregations((ASTNode) expressionTree.getChild(i), aggregations);
doPhase1GetAllAggregations((ASTNode) expressionTree.getChild(i), aggregations, wdwFns);