public OuterJoinOperatorBase(Class<? extends FT> udf, BinaryOperatorInformation<IN1, IN2, OUT> operatorInfo, int[] keyPositions1, int[] keyPositions2, String name, OuterJoinType outerJoinType) { super(new UserCodeClassWrapper<FT>(udf), operatorInfo, keyPositions1, keyPositions2, name); this.outerJoinType = outerJoinType; }
/** * Creates a grouped reduce data flow operator. * * @param udf The class representing the parameterless user-defined function. * @param operatorInfo The type information, describing input and output types of the reduce function. * @param keyPositions The positions of the key fields, in the common data model (flattened). * @param name The name of the operator (for logging and messages). */ public ReduceOperatorBase(Class<? extends FT> udf, UnaryOperatorInformation<T, T> operatorInfo, int[] keyPositions, String name) { super(new UserCodeClassWrapper<FT>(udf), operatorInfo, keyPositions, name); }
/** * Creates a non-grouped reduce data flow operator (all-reduce). * * @param udf The class representing the parameterless user-defined function. * @param operatorInfo The type information, describing input and output types of the reduce function. * @param name The name of the operator (for logging and messages). */ public ReduceOperatorBase(Class<? extends FT> udf, UnaryOperatorInformation<T, T> operatorInfo, String name) { super(new UserCodeClassWrapper<FT>(udf), operatorInfo, name); }
public NoOpUnaryUdfOp() { // pass null here because we override getOutputType to return type // of input operator super(new UserCodeClassWrapper<NoOpFunction>(NoOpFunction.class), null, ""); }
/** * Creates a new Union operator. */ public Union(BinaryOperatorInformation<T, T, T> operatorInfo, String unionLocationName) { // we pass it an AbstractFunction, because currently all operators expect some form of UDF super(new UserCodeClassWrapper<AbstractRichFunction>(AbstractRichFunction.class), operatorInfo, "Union at "+unionLocationName); }
public InnerJoinOperatorBase(Class<? extends FT> udf, BinaryOperatorInformation<IN1, IN2, OUT> operatorInfo, int[] keyPositions1, int[] keyPositions2, String name) { super(new UserCodeClassWrapper<FT>(udf), operatorInfo, keyPositions1, keyPositions2, name); }
public JoinOperatorBase(Class<? extends FT> udf, BinaryOperatorInformation<IN1, IN2, OUT> operatorInfo, int[] keyPositions1, int[] keyPositions2, String name) { super(new UserCodeClassWrapper<>(udf), operatorInfo, keyPositions1, keyPositions2, name); }
public CoGroupOperatorBase(Class<? extends FT> udf, BinaryOperatorInformation<IN1, IN2, OUT> operatorInfo, int[] keyPositions1, int[] keyPositions2, String name) { this(new UserCodeClassWrapper<FT>(udf), operatorInfo, keyPositions1, keyPositions2, name); }
public GroupReduceOperatorBase(Class<? extends FT> udf, UnaryOperatorInformation<IN, OUT> operatorInfo, int[] keyPositions, String name) { super(new UserCodeClassWrapper<FT>(udf), operatorInfo, keyPositions, name); }
public MapOperatorBase(Class<? extends FT> udf, UnaryOperatorInformation<IN, OUT> operatorInfo, String name) { super(new UserCodeClassWrapper<FT>(udf), operatorInfo, name); }
public FilterOperatorBase(Class<? extends FT> udf, UnaryOperatorInformation<T, T> operatorInfo, String name) { super(new UserCodeClassWrapper<FT>(udf), operatorInfo, name); }
public MapPartitionOperatorBase(Class<? extends FT> udf, UnaryOperatorInformation<IN, OUT> operatorInfo, String name) { super(new UserCodeClassWrapper<FT>(udf), operatorInfo, name); }
public CoGroupRawOperatorBase(Class<? extends FT> udf, BinaryOperatorInformation<IN1, IN2, OUT> operatorInfo, int[] keyPositions1, int[] keyPositions2, String name) { this(new UserCodeClassWrapper<FT>(udf), operatorInfo, keyPositions1, keyPositions2, name); }
public CrossOperatorBase(Class<? extends FT> udf, BinaryOperatorInformation<IN1, IN2, OUT> operatorInfo, String name) { this(new UserCodeClassWrapper<FT>(udf), operatorInfo, name); }
public FlatMapOperatorBase(Class<? extends FT> udf, UnaryOperatorInformation<IN, OUT> operatorInfo, String name) { super(new UserCodeClassWrapper<FT>(udf), operatorInfo, name); }
/** * Creates a new instance for the given file using the given input format. * * @param format The {@link org.apache.flink.api.common.io.InputFormat} implementation used to read the data. * @param operatorInfo The type information for the operator. * @param name The given name for the Pact, used in plans, logs and progress messages. */ public GenericDataSourceBase(Class<? extends T> format, OperatorInformation<OUT> operatorInfo, String name) { super(operatorInfo, name); if (format == null) { throw new IllegalArgumentException("Input format may not be null."); } this.formatWrapper = new UserCodeClassWrapper<T>(format); }
/** * Creates a new instance for the given file using the given input format, using the default name. * * @param format The {@link org.apache.flink.api.common.io.InputFormat} implementation used to read the data. * @param operatorInfo The type information for the operator. */ public GenericDataSourceBase(Class<? extends T> format, OperatorInformation<OUT> operatorInfo) { super(operatorInfo, DEFAULT_NAME); if (format == null) { throw new IllegalArgumentException("Input format may not be null."); } this.formatWrapper = new UserCodeClassWrapper<T>(format); }
public NoOpBinaryUdfOp(TypeInformation<OUT> type) { super(new UserCodeClassWrapper<NoOpFunction>(NoOpFunction.class), new BinaryOperatorInformation<OUT, OUT, OUT>(type, type, type), "NoContract"); }
/** * @param name */ public BulkIterationBase(UnaryOperatorInformation<T, T> operatorInfo, String name) { super(new UserCodeClassWrapper<AbstractRichFunction>(AbstractRichFunction.class), operatorInfo, name); inputPlaceHolder = new PartialSolutionPlaceHolder<T>(this, this.getOperatorInfo()); }
public DeltaIterationBase(BinaryOperatorInformation<ST, WT, ST> operatorInfo, int[] keyPositions, String name) { super(new UserCodeClassWrapper<AbstractRichFunction>(AbstractRichFunction.class), operatorInfo, name); this.solutionSetKeyFields = keyPositions; solutionSetPlaceholder = new SolutionSetPlaceHolder<ST>(this, new OperatorInformation<ST>(operatorInfo.getFirstInputType())); worksetPlaceholder = new WorksetPlaceHolder<WT>(this, new OperatorInformation<WT>(operatorInfo.getSecondInputType())); }