Class TimeFcts.FloorDateFunction

    • Method Detail

      • fromTimeInMillis

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

        protected java.lang.Long toStartingTimeInMillis​(java.nio.ByteBuffer bytes)
        Deserializes the specified starting time.
        Parameters:
        bytes - the serialized starting time
        Returns:
        the starting time in milliseconds
      • toTimeInMillis

        protected java.lang.Long toTimeInMillis​(java.nio.ByteBuffer bytes)
        Deserializes the specified input time.
        Parameters:
        bytes - the serialized time
        Returns:
        the time in milliseconds
      • validateDuration

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