Class SqlAbstractTimeFunction


public class SqlAbstractTimeFunction extends SqlFunction
Base class for time functions such as "LOCALTIME", "LOCALTIME(n)".
  • Constructor Details

    • SqlAbstractTimeFunction

      protected SqlAbstractTimeFunction(String name, SqlTypeName typeName)
  • Method Details

    • getSyntax

      public SqlSyntax getSyntax()
      Description copied from class: SqlOperator
      Returns the syntactic type of this operator, never null.
      Overrides:
      getSyntax in class SqlFunction
    • inferReturnType

      public RelDataType inferReturnType(SqlOperatorBinding opBinding)
      Description copied from class: SqlOperator
      Infers the return type of an invocation of this operator; only called after the number and types of operands have already been validated. Subclasses must either override this method or supply an instance of SqlReturnTypeInference to the constructor.
      Overrides:
      inferReturnType in class SqlOperator
      Parameters:
      opBinding - description of invocation (not necessarily a SqlCall)
      Returns:
      inferred return type
    • getMonotonicity

      public SqlMonotonicity getMonotonicity(SqlOperatorBinding call)
      Description copied from class: SqlOperator
      Returns whether a call to this operator is monotonic.

      Default implementation returns SqlMonotonicity.NOT_MONOTONIC.

      Overrides:
      getMonotonicity in class SqlOperator
      Parameters:
      call - Call to this operator with particular arguments and information about the monotonicity of the arguments
    • isDynamicFunction

      public boolean isDynamicFunction()
      Description copied from class: SqlOperator
      Returns whether it is unsafe to cache query plans referencing this operator; false is assumed by default.
      Overrides:
      isDynamicFunction in class SqlOperator