Class TableCreateOptions.Builder

java.lang.Object
io.github.flink.gcp.connector.bigquery.sink.TableCreateOptions.Builder
Enclosing class:
TableCreateOptions

@Public public static final class TableCreateOptions.Builder extends Object
Builder for TableCreateOptions.
  • Method Details

    • timePartitioning

      Partitions the table on ingestion time with the given granularity.
      Parameters:
      type - the partitioning granularity
      Returns:
      this builder
    • timePartitioning

      Partitions the table on the given TIMESTAMP, DATE or DATETIME column with the given granularity — the three column types BigQuery partitions on.
      Parameters:
      type - the partitioning granularity
      field - the column to partition on
      Returns:
      this builder
    • timePartitioningExpiration

      public TableCreateOptions.Builder timePartitioningExpiration(Duration expiration)
      Sets the partition expiration; partitions older than this are deleted by BigQuery. Requires time partitioning to be configured.
      Parameters:
      expiration - the partition expiration, at least 1 ms
      Returns:
      this builder
    • clusteredFields

      public TableCreateOptions.Builder clusteredFields(List<String> fields)
      Clusters the table on the given columns, in precedence order (at most four).
      Parameters:
      fields - the clustering columns
      Returns:
      this builder
    • build

      public TableCreateOptions build()
      Builds the options.
      Returns:
      the options