Enum PartitionMode
- java.lang.Object
-
- java.lang.Enum<PartitionMode>
-
- org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction.PartitionMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PartitionMode>
public enum PartitionMode extends java.lang.Enum<PartitionMode>
This enum contains the states that PartitionRestrictionTracker will go through.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DONEQUERY_CHANGE_STREAMSTOPUPDATE_STATEWAIT_FOR_CHILD_PARTITIONS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PartitionModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PartitionMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UPDATE_STATE
public static final PartitionMode UPDATE_STATE
-
QUERY_CHANGE_STREAM
public static final PartitionMode QUERY_CHANGE_STREAM
-
WAIT_FOR_CHILD_PARTITIONS
public static final PartitionMode WAIT_FOR_CHILD_PARTITIONS
-
DONE
public static final PartitionMode DONE
-
STOP
public static final PartitionMode STOP
-
-
Method Detail
-
values
public static PartitionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PartitionMode c : PartitionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PartitionMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-