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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceHashFunction.HashContextRuntime context for calculating an event hash code.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static HashFunction.HashContextcreateContext(int sourceSubtaskIndex, int downstreamParallelism)Creates a hash context.default inthashcode(HashFunction.HashContext context, T event)Calculates the hash code with the runtime hash context.inthashcode(T 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.
-
-