Class TwoKeyExtractingMapper<T,​K1,​K2>

  • Type Parameters:
    T - type of the values
    K1 - type of the first key
    K2 - type of the second key
    All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.MapFunction<T,​org.apache.flink.api.java.tuple.Tuple3<K1,​K2,​T>>, org.apache.flink.api.common.functions.RichFunction

    @Internal
    public final class TwoKeyExtractingMapper<T,​K1,​K2>
    extends org.apache.flink.api.common.functions.RichMapFunction<T,​org.apache.flink.api.java.tuple.Tuple3<K1,​K2,​T>>
    Mapper that extracts two keys of a value.
    See Also:
    Serialized Form
    • Constructor Detail

      • TwoKeyExtractingMapper

        public TwoKeyExtractingMapper​(org.apache.flink.api.java.functions.KeySelector<T,​K1> keySelector1,
                                      org.apache.flink.api.java.functions.KeySelector<T,​K2> keySelector2)
    • Method Detail

      • map

        public org.apache.flink.api.java.tuple.Tuple3<K1,​K2,​T> map​(T value)
                                                                        throws Exception
        Specified by:
        map in interface org.apache.flink.api.common.functions.MapFunction<T,​K1>
        Specified by:
        map in class org.apache.flink.api.common.functions.RichMapFunction<T,​org.apache.flink.api.java.tuple.Tuple3<K1,​K2,​T>>
        Throws:
        Exception