Class ReduceTransformation<IN,​K>

  • Type Parameters:
    IN - The input and output type of the transformation.
    K - The type of the key of the stream.

    @Internal
    public final class ReduceTransformation<IN,​K>
    extends PhysicalTransformation<IN>
    A Transformation that describes a reduce operation on a KeyedStream.
    • Field Summary

      • Fields inherited from class org.apache.flink.api.dag.Transformation

        bufferTimeout, description, id, name, outputType, typeUsed, UPPER_BOUND_MAX_PARALLELISM
    • Constructor Summary

      Constructors 
      Constructor Description
      ReduceTransformation​(String name, int parallelism, org.apache.flink.api.dag.Transformation<IN> input, org.apache.flink.api.common.functions.ReduceFunction<IN> reducer, org.apache.flink.api.java.functions.KeySelector<IN,​K> keySelector, org.apache.flink.api.common.typeinfo.TypeInformation<K> keyTypeInfo, boolean parallelismConfigured)  
    • Constructor Detail

      • ReduceTransformation

        public ReduceTransformation​(String name,
                                    int parallelism,
                                    org.apache.flink.api.dag.Transformation<IN> input,
                                    org.apache.flink.api.common.functions.ReduceFunction<IN> reducer,
                                    org.apache.flink.api.java.functions.KeySelector<IN,​K> keySelector,
                                    org.apache.flink.api.common.typeinfo.TypeInformation<K> keyTypeInfo,
                                    boolean parallelismConfigured)
    • Method Detail

      • getKeySelector

        public org.apache.flink.api.java.functions.KeySelector<IN,​K> getKeySelector()
      • getKeyTypeInfo

        public org.apache.flink.api.common.typeinfo.TypeInformation<K> getKeyTypeInfo()
      • getReducer

        public org.apache.flink.api.common.functions.ReduceFunction<IN> getReducer()
      • getInputType

        public org.apache.flink.api.common.typeinfo.TypeInformation<IN> getInputType()
        Returns the TypeInformation for the elements of the input.
      • getTransitivePredecessorsInternal

        protected List<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessorsInternal()
        Specified by:
        getTransitivePredecessorsInternal in class org.apache.flink.api.dag.Transformation<IN>
      • getInputs

        public List<org.apache.flink.api.dag.Transformation<?>> getInputs()
        Specified by:
        getInputs in class org.apache.flink.api.dag.Transformation<IN>
      • enableAsyncState

        public void enableAsyncState()
        Overrides:
        enableAsyncState in class org.apache.flink.api.dag.Transformation<IN>
      • isEnableAsyncState

        public boolean isEnableAsyncState()