Class CurrentTimestamp

java.lang.Object
dev.frostlake.functions.BuiltInFunction
dev.frostlake.functions.scalar.context.CurrentTimestamp

public class CurrentTimestamp extends BuiltInFunction
  • Constructor Details

    • CurrentTimestamp

      public CurrentTimestamp()
  • Method Details

    • evaluate

      public Object evaluate(List<Object> args)
      The statement's clock in the session's zone, as live's TIMESTAMP_LTZ carries it.
      Specified by:
      evaluate in class BuiltInFunction
      Parameters:
      args - the optional fractional-seconds precision, which types the call but leaves the value at full precision
      Returns:
      the statement's clock
    • getMinArgCount

      public int getMinArgCount()
      Description copied from class: BuiltInFunction
      The fewest arguments a call to this function may pass; fewer is an argument-count error.
      Specified by:
      getMinArgCount in class BuiltInFunction
      Returns:
      the minimum accepted argument count
    • getMaxArgCount

      public int getMaxArgCount()
      Description copied from class: BuiltInFunction
      The most arguments a call to this function may pass; Integer.MAX_VALUE marks a variadic function (see BuiltInFunction.isVariadic()).
      Specified by:
      getMaxArgCount in class BuiltInFunction
      Returns:
      the maximum accepted argument count