Class PartitionRestriction
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction.PartitionRestriction
-
- All Implemented Interfaces:
java.io.Serializable
public class PartitionRestriction extends java.lang.Object implements java.io.SerializableRepresents the restriction for PartitionRestrictionTracker.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PartitionRestriction(com.google.cloud.Timestamp startTimestamp, com.google.cloud.Timestamp endTimestamp, PartitionMode mode, @Nullable PartitionMode stoppedMode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PartitionRestrictiondone(com.google.cloud.Timestamp startTimestamp, com.google.cloud.Timestamp endTimestamp)booleanequals(@Nullable java.lang.Object o)com.google.cloud.TimestampgetEndTimestamp()PartitionRestrictionMetadatagetMetadata()PartitionModegetMode()com.google.cloud.TimestampgetStartTimestamp()@Nullable PartitionModegetStoppedMode()inthashCode()static PartitionRestrictionqueryChangeStream(com.google.cloud.Timestamp startTimestamp, com.google.cloud.Timestamp endTimestamp)static PartitionRestrictionstop(PartitionRestriction restriction)java.lang.StringtoString()static PartitionRestrictionupdateState(com.google.cloud.Timestamp startTimestamp, com.google.cloud.Timestamp endTimestamp)static PartitionRestrictionwaitForChildPartitions(com.google.cloud.Timestamp startTimestamp, com.google.cloud.Timestamp endTimestamp)PartitionRestrictionwithMetadata(PartitionRestrictionMetadata metadata)
-
-
-
Constructor Detail
-
PartitionRestriction
public PartitionRestriction(com.google.cloud.Timestamp startTimestamp, com.google.cloud.Timestamp endTimestamp, PartitionMode mode, @Nullable PartitionMode stoppedMode)
-
-
Method Detail
-
updateState
public static PartitionRestriction updateState(com.google.cloud.Timestamp startTimestamp, com.google.cloud.Timestamp endTimestamp)
-
queryChangeStream
public static PartitionRestriction queryChangeStream(com.google.cloud.Timestamp startTimestamp, com.google.cloud.Timestamp endTimestamp)
-
waitForChildPartitions
public static PartitionRestriction waitForChildPartitions(com.google.cloud.Timestamp startTimestamp, com.google.cloud.Timestamp endTimestamp)
-
done
public static PartitionRestriction done(com.google.cloud.Timestamp startTimestamp, com.google.cloud.Timestamp endTimestamp)
-
stop
public static PartitionRestriction stop(PartitionRestriction restriction)
-
withMetadata
public PartitionRestriction withMetadata(PartitionRestrictionMetadata metadata)
-
getStartTimestamp
public com.google.cloud.Timestamp getStartTimestamp()
-
getEndTimestamp
public com.google.cloud.Timestamp getEndTimestamp()
-
getMode
public PartitionMode getMode()
-
getStoppedMode
public @Nullable PartitionMode getStoppedMode()
-
getMetadata
public PartitionRestrictionMetadata getMetadata()
-
equals
public boolean equals(@Nullable java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-