Class CardinalityExpression

All Implemented Interfaces:
NamedExpression, HasSQL, Typed

public final class CardinalityExpression extends Function1
Cardinality expression.
  • Field Details

    • max

      private final boolean max
  • Constructor Details

    • CardinalityExpression

      public CardinalityExpression(Expression arg, boolean max)
      Creates new instance of cardinality expression.
      Parameters:
      arg - argument
      max - false for CARDINALITY, true for ARRAY_MAX_CARDINALITY
  • Method Details

    • getValue

      public Value getValue(SessionLocal session)
      Description copied from class: Expression
      Return the resulting value for the current row.
      Specified by:
      getValue in class Expression
      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
    • getName

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