Class CdcTableOptions

java.lang.Object
io.github.flink.gcp.connector.bigquery.sink.CdcTableOptions
All Implemented Interfaces:
Serializable

@Experimental public final class CdcTableOptions extends Object implements Serializable
Desired BigQuery table contract for CDC writes.

Primary-key columns create a missing table and detect incompatible existing tables. When they are absent, an existing table may supply them through its metadata, but a missing table cannot be created. Maximum staleness is unmanaged by default; callers may set a duration or explicitly clear the table option.

See Also:
  • Method Details

    • defaults

      public static CdcTableOptions defaults()
      Returns an undeclared primary key and unmanaged maximum staleness.
    • builder

      public static CdcTableOptions.Builder builder()
      Creates a new builder.
    • getPrimaryKeyColumns

      public List<String> getPrimaryKeyColumns()
      Returns the desired primary-key columns, or an empty list when none is declared.
    • getMaxStaleness

      @Nullable public Duration getMaxStaleness()
      Returns the desired maximum staleness, or null when not setting a duration.
    • managesMaxStaleness

      public boolean managesMaxStaleness()
      Returns whether maximum staleness is explicitly managed by this contract.
    • clearsMaxStaleness

      public boolean clearsMaxStaleness()
      Returns whether the desired state has maximum staleness disabled.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object