Class ArrayPositionFunction

  • All Implemented Interfaces:
    Serializable, org.apache.flink.table.functions.FunctionDefinition

    @Internal
    public class ArrayPositionFunction
    extends BuiltInScalarFunction
    Implementation of BuiltInFunctionDefinitions.ARRAY_POSITION.
    See Also:
    Serialized Form
    • Constructor Detail

      • ArrayPositionFunction

        public ArrayPositionFunction​(org.apache.flink.table.functions.SpecializedFunction.SpecializedContext context)
    • Method Detail

      • open

        public void open​(org.apache.flink.table.functions.FunctionContext context)
                  throws Exception
        Overrides:
        open in class org.apache.flink.table.functions.UserDefinedFunction
        Throws:
        Exception
      • eval

        @Nullable
        public Integer eval​(org.apache.flink.table.data.ArrayData haystack,
                            Object needle)
      • close

        public void close()
                   throws Exception
        Overrides:
        close in class org.apache.flink.table.functions.UserDefinedFunction
        Throws:
        Exception