Class TimeFcts


  • public abstract class TimeFcts
    extends java.lang.Object
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • minTimeuuidFct

        public static final Function minTimeuuidFct
      • maxTimeuuidFct

        public static final Function maxTimeuuidFct
      • dateOfFct

        public static final NativeScalarFunction dateOfFct
        Deprecated.
        Replaced by the #timeUuidToTimestamp function
        Function that convert a value of TIMEUUID into a value of type TIMESTAMP.
      • unixTimestampOfFct

        public static final NativeScalarFunction unixTimestampOfFct
        Deprecated.
        Replaced by the #timeUuidToUnixTimestamp function
        Function that convert a value of type TIMEUUID into an UNIX timestamp.
    • Constructor Detail

      • TimeFcts

        public TimeFcts()
    • Method Detail

      • all

        public static java.util.Collection<Function> all()
      • toDate

        public static final NativeScalarFunction toDate​(TemporalType<?> type)
        Creates a function that convert a value of the specified type into a DATE.
        Parameters:
        type - the temporal type
        Returns:
        a function that convert a value of the specified type into a DATE.
      • toTimestamp

        public static final NativeScalarFunction toTimestamp​(TemporalType<?> type)
        Creates a function that convert a value of the specified type into a TIMESTAMP.
        Parameters:
        type - the temporal type
        Returns:
        a function that convert a value of the specified type into a TIMESTAMP.
      • toUnixTimestamp

        public static final NativeScalarFunction toUnixTimestamp​(TemporalType<?> type)
        Creates a function that convert a value of the specified type into an UNIX timestamp.
        Parameters:
        type - the temporal type
        Returns:
        a function that convert a value of the specified type into an UNIX timestamp.