Class EqualityAndHashcodeProvider
- java.lang.Object
-
- org.apache.flink.table.runtime.util.EqualityAndHashcodeProvider
-
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable
@Internal public class EqualityAndHashcodeProvider extends Object implements Closeable, Serializable
This class is used for scalar function, in that it is used for sharing the initialization context between scalar functions that need code generated hashcode and equals method.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EqualityAndHashcodeProvider(org.apache.flink.table.functions.SpecializedFunction.SpecializedContext context, org.apache.flink.table.types.DataType dataType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanequals(Object o1, Object o2)inthashCode(Object o)voidopen(org.apache.flink.table.functions.FunctionContext context)
-
-
-
Method Detail
-
open
public void open(org.apache.flink.table.functions.FunctionContext context) throws Exception- Throws:
Exception
-
hashCode
public int hashCode(Object o)
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-