@Override public Pair<ILogicalOperator, LogicalVariable> visit(WhereClause w, Mutable<ILogicalOperator> tupSource) throws CompilationException { Pair<ILogicalExpression, Mutable<ILogicalOperator>> p = langExprToAlgExpression(w.getWhereExpr(), tupSource); SelectOperator s = new SelectOperator(new MutableObject<>(p.first), false, null); s.getInputs().add(p.second); s.setSourceLocation(w.getSourceLocation()); return new Pair<>(s, null); }
newSelectOpInLeftPath = new SelectOperator(new MutableObject<ILogicalExpression>(conditionRefExpr), retainMissing, newMissingPlaceHolderVar); newSelectOpInLeftPath.setSourceLocation(conditionRefExpr.getSourceLocation()); VariableUtilities.substituteVariables(newSelectOpInLeftPath, origVarToNewVarInLeftPathMap, context); newSelectOpInRightPath = new SelectOperator(new MutableObject<ILogicalExpression>(conditionRefExpr2), retainMissing, newMissingPlaceHolderVar); newSelectOpInRightPath.setSourceLocation(conditionRefExpr2.getSourceLocation()); newSelectOpInRightPath.getInputs().add(new MutableObject<ILogicalOperator>(currentTopOpInRightPath)); VariableUtilities.substituteVariables(newSelectOpInRightPath, origVarToSIdxUnnestMapOpVarMap, context);
SelectOperator newSelect = new SelectOperator(new MutableObject<ILogicalExpression>(e), select.getRetainMissing(), select.getMissingPlaceholderVariable()); newSelect.setSourceLocation(sourceLoc); List<Mutable<ILogicalOperator>> botInpList = botOp.getInputs(); botInpList.clear();
isFilterableSelectOp.setSourceLocation(sourceLoc); isFilterableSelectOp.getInputs().add(new MutableObject<ILogicalOperator>(inputOp)); isFilterableSelectOp.setExecutionMode(ExecutionMode.LOCAL); SelectOperator isNotFilterableSelectOp = new SelectOperator(new MutableObject<ILogicalExpression>(isNotFilterableExpr), false, null); isNotFilterableSelectOp.setSourceLocation(sourceLoc); isNotFilterableSelectOp.getInputs().add(new MutableObject<ILogicalOperator>(inputOp)); isNotFilterableSelectOp.setExecutionMode(ExecutionMode.LOCAL);
notExpr.setSourceLocation(sourceLoc); SelectOperator selectOp = new SelectOperator(new MutableObject<>(notExpr), false, null); selectOp.setSourceLocation(sourceLoc); currentOpRef.getValue().getInputs().add(new MutableObject<>(selectOp));
selectOp.setSourceLocation(sourceLoc); topJoinRef.setValue(selectOp); NestedTupleSourceOperator ntsOp = new NestedTupleSourceOperator(new MutableObject<>(groupbyOp));
case INNER: { extraSelect = new SelectOperator(exprRef, false, null); extraSelect.setSourceLocation(exprRef.getValue().getSourceLocation()); extraSelect.getInputs().add(new MutableObject<>(outputOp)); outputOp = extraSelect;
s = new SelectOperator(new MutableObject<>(eo2.first), false, null); s.getInputs().add(eo2.second); s.setSourceLocation(sourceLoc); fAgg = BuiltinFunctions.makeAggregateFunctionExpression(BuiltinFunctions.NON_EMPTY_STREAM, new ArrayList<>()); s = new SelectOperator(new MutableObject<>(notExpr), false, null); s.getInputs().add(eo2.second); s.setSourceLocation(sourceLoc); fAgg = BuiltinFunctions.makeAggregateFunctionExpression(BuiltinFunctions.EMPTY_STREAM, new ArrayList<>()); fAgg.setSourceLocation(sourceLoc);
nonSystemNullTest.setSourceLocation(sourceLoc); selectNonSystemNull = new SelectOperator(new MutableObject<>(nonSystemNullTest), false, null); selectNonSystemNull.setSourceLocation(sourceLoc); } else { List<Mutable<ILogicalExpression>> isSystemNullTestList = new ArrayList<>(); selectNonSystemNull = new SelectOperator( new MutableObject<>(new ScalarFunctionCallExpression(finfoAnd, isSystemNullTestList)), false, null); selectNonSystemNull.setSourceLocation(sourceLoc);
SelectOperator selectNonNull = new SelectOperator(new MutableObject<ILogicalExpression>(nonNullTest), false, null); selectNonNull.setSourceLocation(sourceLoc); GroupByOperator g = new GroupByOperator(); g.setSourceLocation(sourceLoc);
select.setSourceLocation(selectExpr.getValue().getSourceLocation());
topSelect.setSourceLocation(indexPlanRootOp.getSourceLocation()); topSelect.getInputs().add(indexSubTree.getRootRef()); topSelect.setExecutionMode(ExecutionMode.LOCAL);
topSelectOp.setSourceLocation(finalIndexSearchOp.getSourceLocation()); topSelectOp.getInputs().add(indexSubTree.getRootRef()); topSelectOp.setExecutionMode(ExecutionMode.LOCAL);
SelectOperator filter = new SelectOperator(new MutableObject<>(conditionExprOpPair.first), false, null); filter.getInputs().add(conditionExprOpPair.second); filter.setSourceLocation(conditionExprOpPair.first.getSourceLocation()); return new Pair<>(filter, rightBranch.second); } else { SelectOperator filter = new SelectOperator(new MutableObject<>(conditionExprOpPair.first), false, null); filter.getInputs().add(conditionExprOpPair.second); filter.setSourceLocation(conditionExprOpPair.first.getSourceLocation());