java.lang.Object
org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction.TimestampRange
All Implemented Interfaces:
Serializable

public class TimestampRange extends Object implements Serializable
A restriction represented by a range of timestamps [from, to).
See Also:
  • Method Details

    • of

      public static TimestampRange of(com.google.cloud.Timestamp from, com.google.cloud.Timestamp to)
      Constructs a timestamp range. The range represents a closed-open interval [from, to). The timestamp to must be greater or equal to the timestamp from, otherwise an IllegalArgumentException will be thrown.
    • getFrom

      public com.google.cloud.Timestamp getFrom()
      Returns the range start timestamp (inclusive).
    • getTo

      public com.google.cloud.Timestamp getTo()
      Returns the range end timestamp (exclusive).
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object