Class TableCreateOptions
java.lang.Object
io.github.flink.gcp.connector.bigquery.sink.TableCreateOptions
- All Implemented Interfaces:
Serializable
Options applied when the sink creates a destination table under
CreateDisposition.CREATE_IF_NEEDED: time partitioning and clustering.
The table schema is not part of these options — it always comes from BigQueryProtoSerializationSchema.getTableSchema(io.github.flink.gcp.connector.bigquery.sink.TableDestination).
Partitioning and clustering only affect table creation. CDC properties are configured through
CdcTableOptions because they also describe existing-table verification and
reconciliation.
Instances are immutable and serializable. Use defaults() for plain, unpartitioned
tables.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forTableCreateOptions.static enumGranularity of time-based partitioning. -
Method Summary
Modifier and TypeMethodDescriptionstatic TableCreateOptions.Builderbuilder()Creates a newTableCreateOptions.Builder.static TableCreateOptionsdefaults()Returns options creating a plain table: no partitioning, no clustering.booleanReturns the clustering columns, in precedence order; empty when unclustered.Returns the partition expiration in milliseconds, ornullwhen partitions never expire.Returns the column the table is partitioned on, ornullfor ingestion-time partitioning (and for unpartitioned tables).Returns the time-partitioning granularity, ornullwhen unpartitioned.inthashCode()toString()
-
Method Details
-
defaults
Returns options creating a plain table: no partitioning, no clustering. -
builder
Creates a newTableCreateOptions.Builder.- Returns:
- a new builder
-
getTimePartitioningType
Returns the time-partitioning granularity, ornullwhen unpartitioned. -
getTimePartitioningField
Returns the column the table is partitioned on, ornullfor ingestion-time partitioning (and for unpartitioned tables). -
getTimePartitioningExpirationMs
Returns the partition expiration in milliseconds, ornullwhen partitions never expire. -
getClusteredFields
Returns the clustering columns, in precedence order; empty when unclustered. -
equals
-
hashCode
public int hashCode() -
toString
-