Class MultiValuedTimestamp<T extends Comparable<T>,​U extends Comparable<U>>

  • All Implemented Interfaces:
    Comparable<Timestamp>, Timestamp

    public class MultiValuedTimestamp<T extends Comparable<T>,​U extends Comparable<U>>
    extends Object
    implements Timestamp
    A logical timestamp that derives its value from two input values. The first value always takes precedence over the second value when comparing timestamps.
    • Constructor Detail

      • MultiValuedTimestamp

        public MultiValuedTimestamp​(T value1,
                                    U value2)
        Creates a new timestamp based on two values. The first value has higher precedence than the second when comparing timestamps.
        Parameters:
        value1 - first value
        value2 - second value