Class TimestampRange
java.lang.Object
org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction.TimestampRange
- All Implemented Interfaces:
Serializable
A restriction represented by a range of timestamps [from, to).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
com.google.cloud.Timestamp
getFrom()
Returns the range start timestamp (inclusive).com.google.cloud.Timestamp
getTo()
Returns the range end timestamp (exclusive).int
hashCode()
static TimestampRange
of
(com.google.cloud.Timestamp from, com.google.cloud.Timestamp to) Constructs a timestamp range.toString()
-
Method Details
-
of
Constructs a timestamp range. The range represents a closed-open interval [from, to). The timestampto
must be greater or equal to the timestampfrom
, otherwise anIllegalArgumentException
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
-
equals
-
hashCode
public int hashCode()
-