Class ProjectOperator<IN,​OUT extends org.apache.flink.api.java.tuple.Tuple>

  • Type Parameters:
    IN - The type of the data set projected by the operator.
    OUT - The type of data set that is the result of the projection.

    @Deprecated
    @Public
    public class ProjectOperator<IN,​OUT extends org.apache.flink.api.java.tuple.Tuple>
    extends SingleInputOperator<IN,​OUT,​ProjectOperator<IN,​OUT>>
    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.
    This operator represents the application of a projection operation on a data set, and the result data set produced by the function.
    See Also:
    FLIP-131: Consolidate the user-facing Dataflow SDKs/APIs (and deprecate the DataSet API
    • Field Detail

      • fields

        protected final int[] fields
        Deprecated.
    • Constructor Detail

      • ProjectOperator

        public ProjectOperator​(DataSet<IN> input,
                               int[] fields,
                               org.apache.flink.api.java.typeutils.TupleTypeInfo<OUT> returnType)
        Deprecated.
    • Method Detail

      • translateToDataFlow

        protected org.apache.flink.api.common.operators.base.MapOperatorBase<IN,​OUT,​org.apache.flink.api.common.functions.MapFunction<IN,​OUT>> translateToDataFlow​(org.apache.flink.api.common.operators.Operator<IN> input)
        Deprecated.
        Description copied from class: SingleInputOperator
        Translates this operation to a data flow operator of the common data flow API.
        Specified by:
        translateToDataFlow in class SingleInputOperator<IN,​OUT extends org.apache.flink.api.java.tuple.Tuple,​ProjectOperator<IN,​OUT extends org.apache.flink.api.java.tuple.Tuple>>
        Parameters:
        input - The data flow operator that produces this operation's input data.
        Returns:
        The translated data flow operator.
      • types

        @Deprecated
        @PublicEvolving
        public <R extends org.apache.flink.api.java.tuple.Tuple> ProjectOperator<IN,​R> types​(Class<?>... types)
        Deprecated.
        Deprecated method only kept for compatibility.