Class TimeFcts.FloorTimeUuidFunction

All Implemented Interfaces:
AssignmentTestable, Function, ScalarFunction
Enclosing class:
TimeFcts

public static final class TimeFcts.FloorTimeUuidFunction extends NativeScalarFunction
Function that rounds a timeUUID down to the closest multiple of a duration.
  • Method Details

    • newInstance

      public static TimeFcts.FloorTimeUuidFunction newInstance()
    • newInstanceWithStartTimeArgument

      public static TimeFcts.FloorTimeUuidFunction newInstanceWithStartTimeArgument()
    • fromTimeInMillis

      protected ByteBuffer fromTimeInMillis(long timeInMillis)
      Serializes the specified time.
      Parameters:
      timeInMillis - the time in milliseconds
      Returns:
      the serialized time
    • isPartialApplicationMonotonic

      protected boolean isPartialApplicationMonotonic(List<ByteBuffer> partialParameters)
      Description copied from class: NativeScalarFunction
      Checks if a partial application of the function is monotonic.

      A function is monotonic if it is either entirely nonincreasing or nondecreasing.

      Overrides:
      isPartialApplicationMonotonic in class NativeScalarFunction
      Parameters:
      partialParameters - the input parameters used to create the partial application of the function
      Returns:
      true if the partial application of the function is monotonic false otherwise.
    • execute

      public final ByteBuffer execute(Arguments arguments)
      Description copied from interface: ScalarFunction
      Applies this function to the specified arguments.
      Parameters:
      arguments - the input arguments for the function
      Returns:
      the result of applying this function to the arguments
    • validateDuration

      protected void validateDuration(Duration duration)
      Validates that the duration has the correct precision.
      Parameters:
      duration - the duration to validate.