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 TypeMethodDescriptionbooleancom.google.cloud.TimestampgetFrom()Returns the range start timestamp (inclusive).com.google.cloud.TimestampgetTo()Returns the range end timestamp (exclusive).inthashCode()static TimestampRangeof(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 timestamptomust be greater or equal to the timestampfrom, otherwise anIllegalArgumentExceptionwill 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()
-