Class AbstractTimeUUIDType<T>

    • 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<T>
      • signedBytesToNativeLong

        public static long signedBytesToNativeLong​(long signedBytes)
      • reorderTimestampBytes

        protected static long reorderTimestampBytes​(long input)
      • decomposeUntyped

        public java.nio.ByteBuffer decomposeUntyped​(java.lang.Object value)
        Overrides:
        decomposeUntyped in class AbstractType<T>
      • 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<T>
      • toTimeInMillis

        public long toTimeInMillis​(java.nio.ByteBuffer value)
        Description copied from class: TemporalType
        Converts this temporal in UNIX timestamp.
        Overrides:
        toTimeInMillis in class TemporalType<T>
        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<T>
        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<T>
        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<T>
        Returns:
        the current temporal value.
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface java.util.Comparator<T>
        Overrides:
        equals in class java.lang.Object