Class TableDestination
java.lang.Object
io.github.flink.gcp.connector.bigquery.sink.DestinationResolution
io.github.flink.gcp.connector.bigquery.sink.TableDestination
- All Implemented Interfaces:
Serializable
A fully-qualified BigQuery table reference: project, dataset and table.
Instances are pure table identity: equals(Object) and hashCode()
are defined over exactly (project, dataset, table) so the class can serve as a per-destination
key (writer caches, connection routing). Per-destination creation metadata (partitioning,
clustering) is intentionally not part of this class — it is supplied through TableCreateOptionsProvider — keeping destination identity stable.
Instances are immutable; the resource path and hash are precomputed, so they are cheap to use as map keys on the per-record write path. Resolvers should still cache and reuse instances instead of re-creating them per record.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the BigQuery dataset id, given as a bare id rather than a resource path.Returns the Google Cloud project id, given as a bare id rather than a resource path.getTable()Returns the BigQuery table id, given as a bare id rather than a resource path.inthashCode()static TableDestinationCreates aTableDestinationfrom bare ids, not resource paths.toString()Returns the table path in theprojects/<p>/datasets/<d>/tables/<t>form used by the BigQuery Storage API.
-
Method Details
-
of
Creates aTableDestinationfrom bare ids, not resource paths.- Parameters:
project- the Google Cloud project iddataset- the BigQuery dataset idtable- the BigQuery table id- Returns:
- the destination
- Throws:
IllegalArgumentException- if a component is null or blank, has leading or trailing whitespace, or contains'/'— a separator would make the composed resource path address a different resource
-
getProject
Returns the Google Cloud project id, given as a bare id rather than a resource path. -
getDataset
Returns the BigQuery dataset id, given as a bare id rather than a resource path. -
getTable
Returns the BigQuery table id, given as a bare id rather than a resource path. -
toTablePath
Returns the table path in theprojects/<p>/datasets/<d>/tables/<t>form used by the BigQuery Storage API. -
equals
-
hashCode
public int hashCode() -
toString
-