Class TwoInputOperator<IN1,​IN2,​OUT,​O extends TwoInputOperator<IN1,​IN2,​OUT,​O>>

  • Type Parameters:
    IN1 - The data type of the first input data set.
    IN2 - The data type of the second input data set.
    OUT - The data type of the returned data set.
    Direct Known Subclasses:
    TwoInputUdfOperator, UnionOperator

    @Deprecated
    @Public
    public abstract class TwoInputOperator<IN1,​IN2,​OUT,​O extends TwoInputOperator<IN1,​IN2,​OUT,​O>>
    extends Operator<OUT,​O>
    Deprecated.
    All Flink DataSet APIs are deprecated since Flink 1.18 and will be removed in a future Flink major version. You can still build your application in DataSet, but you should move to either the DataStream and/or Table API.
    Base class for operations that operates on two input data sets.
    See Also:
    FLIP-131: Consolidate the user-facing Dataflow SDKs/APIs (and deprecate the DataSet API
    • Constructor Detail

      • TwoInputOperator

        protected TwoInputOperator​(DataSet<IN1> input1,
                                   DataSet<IN2> input2,
                                   org.apache.flink.api.common.typeinfo.TypeInformation<OUT> resultType)
        Deprecated.
    • Method Detail

      • getInput1

        public DataSet<IN1> getInput1()
        Deprecated.
        Gets the data set that this operation uses as its first input.
        Returns:
        The data set that this operation uses as its first input.
      • getInput2

        public DataSet<IN2> getInput2()
        Deprecated.
        Gets the data set that this operation uses as its second input.
        Returns:
        The data set that this operation uses as its second input.
      • getInput1Type

        public org.apache.flink.api.common.typeinfo.TypeInformation<IN1> getInput1Type()
        Deprecated.
        Gets the type information of the data type of the first input data set. This method returns equivalent information as getInput1().getType().
        Returns:
        The first input data type.
      • getInput2Type

        public org.apache.flink.api.common.typeinfo.TypeInformation<IN2> getInput2Type()
        Deprecated.
        Gets the type information of the data type of the second input data set. This method returns equivalent information as getInput2().getType().
        Returns:
        The second input data type.
      • translateToDataFlow

        protected abstract org.apache.flink.api.common.operators.Operator<OUT> translateToDataFlow​(org.apache.flink.api.common.operators.Operator<IN1> input1,
                                                                                                   org.apache.flink.api.common.operators.Operator<IN2> input2)
        Deprecated.
        Translates this java API operator into a common API operator with two inputs.
        Parameters:
        input1 - The first input of the operation, as a common API operator.
        input2 - The second input of the operation, as a common API operator.
        Returns:
        The created common API operator.