Package org.h2.mode

Class FunctionsLegacy

All Implemented Interfaces:
ExpressionWithVariableParameters, NamedExpression, HasSQL, Typed

public class FunctionsLegacy extends ModeFunction
This class implements some legacy functions not available in Regular mode.
  • Field Details

  • Constructor Details

    • FunctionsLegacy

      private FunctionsLegacy(FunctionInfo info)
  • Method Details

    • getFunction

      public static FunctionsLegacy getFunction(String upperName)
      Returns mode-specific function for a given name, or null.
      Parameters:
      upperName - the upper-case name of a function
      Returns:
      the function with specified name or null
    • getValue

      public Value getValue(SessionLocal session)
      Description copied from class: Expression
      Return the resulting value for the current row.
      Overrides:
      getValue in class FunctionN
      Parameters:
      session - the session
      Returns:
      the result
    • optimize

      public Expression optimize(SessionLocal session)
      Description copied from class: Expression
      Try to optimize the expression.
      Specified by:
      optimize in class Expression
      Parameters:
      session - the session
      Returns:
      the optimized expression