Enum ValueCaptureType
- java.lang.Object
-
- java.lang.Enum<ValueCaptureType>
-
- org.apache.beam.sdk.io.gcp.spanner.changestreams.model.ValueCaptureType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ValueCaptureType>
@DefaultCoder(org.apache.beam.sdk.extensions.avro.coders.AvroCoder.class) public enum ValueCaptureType extends java.lang.Enum<ValueCaptureType>
Represents the capture type of a change stream. The only supported value at the moment is OLD_AND_NEW_VALUES, meaning thatMods will include the column values before and after the database operations were applied.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NEW_ROWNEW_ROW_AND_OLD_VALUESNEW_VALUESOLD_AND_NEW_VALUESUNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValueCaptureTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ValueCaptureType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW_ROW
public static final ValueCaptureType NEW_ROW
-
NEW_VALUES
public static final ValueCaptureType NEW_VALUES
-
OLD_AND_NEW_VALUES
public static final ValueCaptureType OLD_AND_NEW_VALUES
-
NEW_ROW_AND_OLD_VALUES
public static final ValueCaptureType NEW_ROW_AND_OLD_VALUES
-
UNKNOWN
public static final ValueCaptureType UNKNOWN
-
-
Method Detail
-
values
public static ValueCaptureType[] 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 (ValueCaptureType c : ValueCaptureType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValueCaptureType 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
-
-