Interface HashFunction<T>

  • Type Parameters:
    T - the type of given event.
    All Known Implementing Classes:
    PaimonHashFunction

    @Internal
    public interface HashFunction<T>
    The hash function used to calculate the hash code from a given event.
    • Method Detail

      • createContext

        static HashFunction.HashContext createContext​(int sourceSubtaskIndex,
                                                      int downstreamParallelism)
        Creates a hash context.
      • hashcode

        int hashcode​(T event)
      • hashcode

        default int hashcode​(HashFunction.HashContext context,
                             T event)
        Calculates the hash code with the runtime hash context.

        Implementations that do not depend on the context can continue implementing hashcode(Object) only.