Class TimeUUIDType

  • All Implemented Interfaces:
    java.util.Comparator<java.nio.ByteBuffer>, AssignmentTestable

    public class TimeUUIDType
    extends TemporalType<java.util.UUID>
    • Method Detail

      • compareCustom

        public <VL,​VR> int compareCustom​(VL left,
                                               ValueAccessor<VL> accessorL,
                                               VR right,
                                               ValueAccessor<VR> accessorR)
        Description copied from class: AbstractType
        Implement IFF ComparisonType is CUSTOM Compares the byte representation of two instances of this class, for types where this cannot be done by simple in-order comparison of the unsigned bytes Standard Java compare semantics
        Overrides:
        compareCustom in class AbstractType<java.util.UUID>
      • reorderTimestampBytes

        protected static long reorderTimestampBytes​(long input)
      • valueLengthIfFixed

        public int valueLengthIfFixed()
        Description copied from class: AbstractType
        The length of values for this type if all values are of fixed length, -1 otherwise.
        Overrides:
        valueLengthIfFixed in class AbstractType<java.util.UUID>
      • toTimeInMillis

        public long toTimeInMillis​(java.nio.ByteBuffer value)
        Description copied from class: TemporalType
        Converts this temporal in UNIX timestamp.
        Overrides:
        toTimeInMillis in class TemporalType<java.util.UUID>
        Parameters:
        value - the temporal value.
        Returns:
        the UNIX timestamp corresponding to this temporal.
      • addDuration

        public java.nio.ByteBuffer addDuration​(java.nio.ByteBuffer temporal,
                                               java.nio.ByteBuffer duration)
        Description copied from class: TemporalType
        Adds the duration to the specified value.
        Overrides:
        addDuration in class TemporalType<java.util.UUID>
        Parameters:
        temporal - the value to add to
        duration - the duration to add
        Returns:
        the addition result
      • substractDuration

        public java.nio.ByteBuffer substractDuration​(java.nio.ByteBuffer temporal,
                                                     java.nio.ByteBuffer duration)
        Description copied from class: TemporalType
        Substract the duration from the specified value.
        Overrides:
        substractDuration in class TemporalType<java.util.UUID>
        Parameters:
        temporal - the value to substract from
        duration - the duration to substract
        Returns:
        the substracion result
      • now

        public java.nio.ByteBuffer now()
        Description copied from class: TemporalType
        Returns the current temporal value.
        Overrides:
        now in class TemporalType<java.util.UUID>
        Returns:
        the current temporal value.