/** * Creates a non-grouped reduce data flow operator (all-reduce). * * @param udf The user-defined function, as a function object. * @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(FT udf, UnaryOperatorInformation<T, T> operatorInfo, String name) { super(new UserCodeObjectWrapper<FT>(udf), operatorInfo, name); }
public OuterJoinOperatorBase(FT udf, BinaryOperatorInformation<IN1, IN2, OUT> operatorInfo, int[] keyPositions1, int[] keyPositions2, String name, OuterJoinType outerJoinType) { super(new UserCodeObjectWrapper<FT>(udf), operatorInfo, keyPositions1, keyPositions2, name); this.outerJoinType = outerJoinType; }
/** * Creates a grouped reduce data flow operator. * * @param udf The user-defined function, as a function object. * @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(FT udf, UnaryOperatorInformation<T, T> operatorInfo, int[] keyPositions, String name) { super(new UserCodeObjectWrapper<FT>(udf), operatorInfo, keyPositions, name); }
public FilterOperatorBase(FT udf, UnaryOperatorInformation<T, T> operatorInfo, String name) { super(new UserCodeObjectWrapper<FT>(udf), operatorInfo, name); }
public CrossOperatorBase(FT udf, BinaryOperatorInformation<IN1, IN2, OUT> operatorInfo, String name) { this(new UserCodeObjectWrapper<FT>(udf), operatorInfo, name); }
public InnerJoinOperatorBase(FT udf, BinaryOperatorInformation<IN1, IN2, OUT> operatorInfo, int[] keyPositions1, int[] keyPositions2, String name) { super(new UserCodeObjectWrapper<FT>(udf), operatorInfo, keyPositions1, keyPositions2, name); }
public JoinOperatorBase(FT udf, BinaryOperatorInformation<IN1, IN2, OUT> operatorInfo, int[] keyPositions1, int[] keyPositions2, String name) { super(new UserCodeObjectWrapper<>(udf), operatorInfo, keyPositions1, keyPositions2, name); }
public MapPartitionOperatorBase(FT udf, UnaryOperatorInformation<IN, OUT> operatorInfo, String name) { super(new UserCodeObjectWrapper<FT>(udf), operatorInfo, name); }
public GroupReduceOperatorBase(FT udf, UnaryOperatorInformation<IN, OUT> operatorInfo, String name) { super(new UserCodeObjectWrapper<FT>(udf), operatorInfo, name); }
public GroupCombineOperatorBase(FT udf, UnaryOperatorInformation<IN, OUT> operatorInfo, int[] keyPositions, String name) { super(new UserCodeObjectWrapper<FT>(udf), operatorInfo, keyPositions, name); }
public CoGroupOperatorBase(FT udf, BinaryOperatorInformation<IN1, IN2, OUT> operatorInfo, int[] keyPositions1, int[] keyPositions2, String name) { this(new UserCodeObjectWrapper<FT>(udf), operatorInfo, keyPositions1, keyPositions2, name); }
public CoGroupRawOperatorBase(FT udf, BinaryOperatorInformation<IN1, IN2, OUT> operatorInfo, int[] keyPositions1, int[] keyPositions2, String name) { this(new UserCodeObjectWrapper<FT>(udf), operatorInfo, keyPositions1, keyPositions2, name); }
public GroupReduceOperatorBase(FT udf, UnaryOperatorInformation<IN, OUT> operatorInfo, int[] keyPositions, String name) { super(new UserCodeObjectWrapper<FT>(udf), operatorInfo, keyPositions, name); }
public MapOperatorBase(FT udf, UnaryOperatorInformation<IN, OUT> operatorInfo, String name) { super(new UserCodeObjectWrapper<FT>(udf), operatorInfo, name); }
public FlatMapOperatorBase(FT udf, UnaryOperatorInformation<IN, OUT> operatorInfo, String name) { super(new UserCodeObjectWrapper<FT>(udf), operatorInfo, name); }
/** * 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(T format, OperatorInformation<OUT> operatorInfo) { super(operatorInfo, DEFAULT_NAME); if (format == null) { throw new IllegalArgumentException("Input format may not be null."); } this.formatWrapper = new UserCodeObjectWrapper<T>(format); }
/** * 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(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 UserCodeObjectWrapper<T>(format); }
/** * Creates a GenericDataSink with the provided {@link org.apache.flink.api.common.io.OutputFormat} implementation * and the given name. * * @param f The {@link org.apache.flink.api.common.io.OutputFormat} implementation used to sink the data. * @param name The given name for the sink, used in plans, logs and progress messages. */ public GenericDataSinkBase(OutputFormat<IN> f, UnaryOperatorInformation<IN, Nothing> operatorInfo, String name) { super(operatorInfo, name); checkNotNull(f, "The OutputFormat may not be null."); this.formatWrapper = new UserCodeObjectWrapper<OutputFormat<IN>>(f); }
public PartitionOperatorBase(UnaryOperatorInformation<IN, IN> operatorInfo, PartitionMethod pMethod, String name) { super(new UserCodeObjectWrapper<NoOpFunction>(new NoOpFunction()), operatorInfo, name); this.partitionMethod = pMethod; }
public SortPartitionOperatorBase(UnaryOperatorInformation<IN, IN> operatorInfo, Ordering partitionOrdering, String name) { super(new UserCodeObjectWrapper<NoOpFunction>(new NoOpFunction()), operatorInfo, name); this.partitionOrdering = partitionOrdering; }