Class ArrayContainsFunction
- java.lang.Object
-
- org.apache.flink.table.functions.UserDefinedFunction
-
- org.apache.flink.table.functions.ScalarFunction
-
- org.apache.flink.table.runtime.functions.scalar.BuiltInScalarFunction
-
- org.apache.flink.table.runtime.functions.scalar.ArrayContainsFunction
-
- All Implemented Interfaces:
Serializable
,FunctionDefinition
@Internal public class ArrayContainsFunction extends BuiltInScalarFunction
Implementation ofBuiltInFunctionDefinitions.ARRAY_CONTAINS
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArrayContainsFunction(SpecializedFunction.SpecializedContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Tear-down method for user-defined function.Boolean
eval(ArrayData haystack, Object needle)
void
open(FunctionContext context)
Setup method for user-defined function.-
Methods inherited from class org.apache.flink.table.runtime.functions.scalar.BuiltInScalarFunction
getArgumentDataTypes, getOutputDataType, getRequirements, getTypeInference, isDeterministic
-
Methods inherited from class org.apache.flink.table.functions.ScalarFunction
getKind, getParameterTypes, getResultType
-
Methods inherited from class org.apache.flink.table.functions.UserDefinedFunction
functionIdentifier, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.functions.FunctionDefinition
supportsConstantFolding
-
-
-
-
Constructor Detail
-
ArrayContainsFunction
public ArrayContainsFunction(SpecializedFunction.SpecializedContext context)
-
-
Method Detail
-
open
public void open(FunctionContext context) throws Exception
Description copied from class:UserDefinedFunction
Setup method for user-defined function. It can be used for initialization work. By default, this method does nothing.- Overrides:
open
in classUserDefinedFunction
- Throws:
Exception
-
close
public void close() throws Exception
Description copied from class:UserDefinedFunction
Tear-down method for user-defined function. It can be used for clean up work. By default, this method does nothing.- Overrides:
close
in classUserDefinedFunction
- Throws:
Exception
-
-