Class ArraySortFunction

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.ArraySortFunction
All Implemented Interfaces:
Serializable, org.apache.flink.table.functions.FunctionDefinition

@Internal public class ArraySortFunction extends BuiltInScalarFunction
Implementation of ARRAY_SORT function.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ArraySortFunction(org.apache.flink.table.functions.SpecializedFunction.SpecializedContext context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.apache.flink.table.data.ArrayData
    eval(org.apache.flink.table.data.ArrayData array)
     
    org.apache.flink.table.data.ArrayData
    eval(org.apache.flink.table.data.ArrayData array, Boolean ascendingOrder)
     
    org.apache.flink.table.data.ArrayData
    eval(org.apache.flink.table.data.ArrayData array, Boolean ascendingOrder, Boolean nullFirst)
     
    void
    open(org.apache.flink.table.functions.FunctionContext context)
     

    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 Details

    • ArraySortFunction

      public ArraySortFunction(org.apache.flink.table.functions.SpecializedFunction.SpecializedContext context)
  • Method Details

    • 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 org.apache.flink.table.data.ArrayData eval(org.apache.flink.table.data.ArrayData array)
    • eval

      @Nullable public org.apache.flink.table.data.ArrayData eval(org.apache.flink.table.data.ArrayData array, Boolean ascendingOrder)
    • eval

      @Nullable public org.apache.flink.table.data.ArrayData eval(org.apache.flink.table.data.ArrayData array, Boolean ascendingOrder, Boolean nullFirst)
    • close

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