Class HashSelector<IN>

  • Type Parameters:
    IN - Type of objects to extract the key from.
    All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.java.functions.KeySelector<IN,​Integer>

    @Deprecated
    @Internal
    public class HashSelector<IN>
    extends Object
    implements org.apache.flink.api.java.functions.KeySelector<IN,​Integer>
    Deprecated.
    A wrapper around a KeySelector that returns the Object.hashCode() of the returned key.
    See Also:
    Serialized Form
    • Constructor Detail

      • HashSelector

        public HashSelector​(org.apache.flink.api.java.functions.KeySelector<IN,​?> keySelector)
        Deprecated.
    • Method Detail

      • getKey

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