Class PartitionRestriction

  • All Implemented Interfaces:
    java.io.Serializable

    public class PartitionRestriction
    extends java.lang.Object
    implements java.io.Serializable
    Represents the restriction for PartitionRestrictionTracker.
    See Also:
    Serialized Form
    • 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)
      • getStartTimestamp

        public com.google.cloud.Timestamp getStartTimestamp()
      • getEndTimestamp

        public com.google.cloud.Timestamp getEndTimestamp()
      • getStoppedMode

        public @Nullable PartitionMode getStoppedMode()
      • equals

        public boolean equals​(@Nullable java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object