Enum Class StreamingStartingStrategy

java.lang.Object
java.lang.Enum<StreamingStartingStrategy>
org.apache.iceberg.flink.source.StreamingStartingStrategy
All Implemented Interfaces:
Serializable, Comparable<StreamingStartingStrategy>, Constable

public enum StreamingStartingStrategy extends Enum<StreamingStartingStrategy>
Starting strategy for streaming execution.
  • Enum Constant Details

    • 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 Details

    • values

      public static StreamingStartingStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StreamingStartingStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null