Class ArrayTableFunction

java.lang.Object
org.h2.expression.function.table.TableFunction
org.h2.expression.function.table.ArrayTableFunction
All Implemented Interfaces:
ExpressionWithVariableParameters, NamedExpression, HasSQL

public final class ArrayTableFunction extends TableFunction
A table value function.
  • Field Details

  • Constructor Details

    • ArrayTableFunction

      public ArrayTableFunction(int function)
  • Method Details

    • getValue

      public ResultInterface getValue(SessionLocal session)
      Description copied from class: TableFunction
      Get a result with.
      Specified by:
      getValue in class TableFunction
      Parameters:
      session - the session
      Returns:
      the result
    • optimize

      public void optimize(SessionLocal session)
      Description copied from class: TableFunction
      Try to optimize this table function
      Overrides:
      optimize in class TableFunction
      Parameters:
      session - the session
    • getSQL

      public StringBuilder getSQL(StringBuilder builder, int sqlFlags)
      Description copied from interface: HasSQL
      Appends the SQL statement of this object to the specified builder.
      Specified by:
      getSQL in interface HasSQL
      Overrides:
      getSQL in class TableFunction
      Parameters:
      builder - string builder
      sqlFlags - formatting flags
      Returns:
      the specified string builder
    • getValueTemplate

      public ResultInterface getValueTemplate(SessionLocal session)
      Description copied from class: TableFunction
      Get an empty result with the column names set.
      Specified by:
      getValueTemplate in class TableFunction
      Parameters:
      session - the session
      Returns:
      the empty result
    • setColumns

      public void setColumns(ArrayList<Column> columns)
    • getName

      public String getName()
      Description copied from interface: NamedExpression
      Get the name.
      Returns:
      the name in uppercase
    • isDeterministic

      public boolean isDeterministic()
      Description copied from class: TableFunction
      Whether the function always returns the same result for the same parameters.
      Specified by:
      isDeterministic in class TableFunction
      Returns:
      true if it does
    • getFunctionType

      public int getFunctionType()