Class CdcTableOptions
java.lang.Object
io.github.flink.gcp.connector.bigquery.sink.CdcTableOptions
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CdcTableOptions.Builderbuilder()Creates a new builder.booleanReturns whether the desired state has maximum staleness disabled.static CdcTableOptionsdefaults()Returns an undeclared primary key and unmanaged maximum staleness.booleanReturns the desired maximum staleness, ornullwhen not setting a duration.Returns the desired primary-key columns, or an empty list when none is declared.inthashCode()booleanReturns whether maximum staleness is explicitly managed by this contract.toString()
-
Method Details
-
defaults
Returns an undeclared primary key and unmanaged maximum staleness. -
builder
Creates a new builder. -
getPrimaryKeyColumns
Returns the desired primary-key columns, or an empty list when none is declared. -
getMaxStaleness
Returns the desired maximum staleness, ornullwhen 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
-
hashCode
public int hashCode() -
toString
-