@Override public ILogicalOperator visitDataScanOperator(DataSourceScanOperator op, Void arg) throws AlgebricksException { ArrayList<LogicalVariable> newInputList = new ArrayList<>(); newInputList.addAll(op.getVariables()); Mutable<ILogicalExpression> newSelectCondition = op.getSelectCondition() != null ? deepCopyExpressionRef(op.getSelectCondition()) : null; DataSourceScanOperator newOp = new DataSourceScanOperator(newInputList, op.getDataSource(), newSelectCondition, op.getOutputLimit()); return newOp; }
@Override public ILogicalOperator visitDataScanOperator(DataSourceScanOperator op, ILogicalOperator arg) throws AlgebricksException { Mutable<ILogicalExpression> newSelectCondition = op.getSelectCondition() != null ? exprDeepCopyVisitor.deepCopyExpressionReference(op.getSelectCondition()) : null; DataSourceScanOperator opCopy = new DataSourceScanOperator(deepCopyVariableList(op.getVariables()), op.getDataSource(), newSelectCondition, op.getOutputLimit()); deepCopyInputsAnnotationsAndExecutionMode(op, arg, opCopy); return opCopy; }
List<LogicalVariable> variables = new ArrayList<>(); variables.add(unnest.getVariable()); DataSourceScanOperator scan = new DataSourceScanOperator(variables, datasource); scan.setSourceLocation(unnest.getSourceLocation()); List<Mutable<ILogicalOperator>> scanInpList = scan.getInputs();
feedDataScanOutputVariables.addAll(pkVars); DataSourceScanOperator scan = new DataSourceScanOperator(feedDataScanOutputVariables, ds); scan.setSourceLocation(unnest.getSourceLocation()); List<Mutable<ILogicalOperator>> scanInpList = scan.getInputs();
DataSourceScanOperator dssOp = new DataSourceScanOperator(payloadVars, lds); dssOp.getInputs().add(new MutableObject<>(etsOp)); dssOp.setSourceLocation(sourceLoc);
AssignOperator assign = (AssignOperator) op2; DataSourceScanOperator opNew = new DataSourceScanOperator(assign.getVariables(), ds); opNew.getInputs().addAll(assign.getInputs()); opRef2.setValue(opNew);
variables.add(context.newVar()); DataSourceScanOperator scan = new DataSourceScanOperator(variables, dataSource); scan.setSourceLocation(unnest.getSourceLocation()); List<Mutable<ILogicalOperator>> scanInpList = scan.getInputs();
ets.setExecutionMode(PARTITIONED); DataSourceScanOperator scanOperator = new DataSourceScanOperator(Collections.emptyList(), null); scanOperator.setExecutionMode(PARTITIONED); scanOperator.getInputs().add(new MutableObject<>(ets));
ets1.setExecutionMode(PARTITIONED); DataSourceScanOperator scanOperator1 = new DataSourceScanOperator(Collections.emptyList(), null); scanOperator1.setExecutionMode(PARTITIONED); scanOperator1.getInputs().add(new MutableObject<>(ets1)); ets1.setExecutionMode(PARTITIONED); DataSourceScanOperator scanOperator2 = new DataSourceScanOperator(Collections.emptyList(), null); scanOperator2.setExecutionMode(PARTITIONED); scanOperator2.getInputs().add(new MutableObject<>(ets2));
ets.setExecutionMode(PARTITIONED); DataSourceScanOperator scanOperator = new DataSourceScanOperator(Collections.emptyList(), null); scanOperator.setExecutionMode(PARTITIONED); scanOperator.getInputs().add(new MutableObject<>(ets));