Class KeySelectorUtil.OneKeySelector<IN,​K>

  • Type Parameters:
    IN - The type of the elements where the key is extracted from.
    K - The type of the key.
    All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.java.functions.KeySelector<IN,​K>
    Enclosing class:
    KeySelectorUtil

    public static final class KeySelectorUtil.OneKeySelector<IN,​K>
    extends Object
    implements org.apache.flink.api.java.functions.KeySelector<IN,​K>
    Key extractor that extracts a single field via a generic comparator.
    See Also:
    Serialized Form
    • Method Detail

      • getKey

        public K getKey​(IN value)
                 throws Exception
        Specified by:
        getKey in interface org.apache.flink.api.java.functions.KeySelector<IN,​K>
        Throws:
        Exception