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, clustering, and the table's description
and labels.
The table schema is not part of these options — it always comes from BigQueryProtoSerializationSchema.getTableSchema(io.github.flink.gcp.connector.bigquery.sink.TableDestination).
Column descriptions travel with that schema. Every option here affects table creation only: an
existing table is never changed by them. 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, no description and no labels.booleanReturns the clustering columns, in precedence order; empty when unclustered.Returns the table description, ornullwhen none is configured.Returns the table labels, in the order they were given; empty when none are configured.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, no description and no labels. -
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. -
getDescription
Returns the table description, ornullwhen none is configured. -
getLabels
Returns the table labels, in the order they were given; empty when none are configured. -
equals
-
hashCode
public int hashCode() -
toString
-