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 void
close()
boolean
equals(Object o1, Object o2)
int
hashCode(Object o)
void
open(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-