Package org.apache.iceberg.flink.source
Enum StreamingStartingStrategy
- java.lang.Object
-
- java.lang.Enum<StreamingStartingStrategy>
-
- org.apache.iceberg.flink.source.StreamingStartingStrategy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<StreamingStartingStrategy>
public enum StreamingStartingStrategy extends java.lang.Enum<StreamingStartingStrategy>
Starting strategy for streaming execution.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INCREMENTAL_FROM_EARLIEST_SNAPSHOT
Start incremental mode from the earliest snapshot inclusive.INCREMENTAL_FROM_LATEST_SNAPSHOT
Start incremental mode from the latest snapshot inclusive.INCREMENTAL_FROM_SNAPSHOT_ID
Start incremental mode from a snapshot with a specific id inclusive.INCREMENTAL_FROM_SNAPSHOT_TIMESTAMP
Start incremental mode from a snapshot with a specific timestamp inclusive.TABLE_SCAN_THEN_INCREMENTAL
Do a regular table scan then switch to the incremental mode.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StreamingStartingStrategy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StreamingStartingStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TABLE_SCAN_THEN_INCREMENTAL
public static final StreamingStartingStrategy TABLE_SCAN_THEN_INCREMENTAL
Do a regular table scan then switch to the incremental mode.The incremental mode starts from the current snapshot exclusive.
-
INCREMENTAL_FROM_LATEST_SNAPSHOT
public static final StreamingStartingStrategy INCREMENTAL_FROM_LATEST_SNAPSHOT
Start incremental mode from the latest snapshot inclusive.If it is an empty map, all future append snapshots should be discovered.
-
INCREMENTAL_FROM_EARLIEST_SNAPSHOT
public static final StreamingStartingStrategy INCREMENTAL_FROM_EARLIEST_SNAPSHOT
Start incremental mode from the earliest snapshot inclusive.If it is an empty map, all future append snapshots should be discovered.
-
INCREMENTAL_FROM_SNAPSHOT_ID
public static final StreamingStartingStrategy INCREMENTAL_FROM_SNAPSHOT_ID
Start incremental mode from a snapshot with a specific id inclusive.
-
INCREMENTAL_FROM_SNAPSHOT_TIMESTAMP
public static final StreamingStartingStrategy INCREMENTAL_FROM_SNAPSHOT_TIMESTAMP
Start incremental mode from a snapshot with a specific timestamp inclusive.If the timestamp is between two snapshots, it should start from the snapshot after the timestamp.
-
-
Method Detail
-
values
public static StreamingStartingStrategy[] 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 (StreamingStartingStrategy c : StreamingStartingStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StreamingStartingStrategy 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
-
-