Class TableDestination
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.bigquery.TableDestination
-
- All Implemented Interfaces:
java.io.Serializable
public class TableDestination extends java.lang.Object implements java.io.Serializable
Encapsulates a BigQuery table destination.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TableDestination(com.google.api.services.bigquery.model.TableReference tableReference, @Nullable java.lang.String tableDescription)
TableDestination(com.google.api.services.bigquery.model.TableReference tableReference, @Nullable java.lang.String tableDescription, @Nullable java.lang.String jsonTimePartitioning)
TableDestination(com.google.api.services.bigquery.model.TableReference tableReference, @Nullable java.lang.String tableDescription, @Nullable java.lang.String jsonTimePartitioning, @Nullable java.lang.String jsonClustering)
TableDestination(com.google.api.services.bigquery.model.TableReference tableReference, @Nullable java.lang.String tableDescription, com.google.api.services.bigquery.model.TimePartitioning timePartitioning)
TableDestination(java.lang.String tableSpec, @Nullable java.lang.String tableDescription)
TableDestination(java.lang.String tableSpec, @Nullable java.lang.String tableDescription, @Nullable java.lang.String jsonTimePartitioning)
TableDestination(java.lang.String tableSpec, @Nullable java.lang.String tableDescription, @Nullable java.lang.String jsonTimePartitioning, @Nullable java.lang.String jsonClustering)
TableDestination(java.lang.String tableSpec, @Nullable java.lang.String tableDescription, com.google.api.services.bigquery.model.TimePartitioning timePartitioning)
TableDestination(java.lang.String tableSpec, @Nullable java.lang.String tableDescription, com.google.api.services.bigquery.model.TimePartitioning timePartitioning, com.google.api.services.bigquery.model.Clustering clustering)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(@Nullable java.lang.Object o)
@Nullable com.google.api.services.bigquery.model.Clustering
getClustering()
@Nullable java.lang.String
getJsonClustering()
@Nullable java.lang.String
getJsonTimePartitioning()
@Nullable java.lang.String
getTableDescription()
com.google.api.services.bigquery.model.TableReference
getTableReference()
java.lang.String
getTableSpec()
Return the tablespec in [project:].dataset.tableid format.java.lang.String
getTableUrn()
Return the tablespec in projects/[project]/datasets/[dataset]/tables/[table] format.@Nullable com.google.api.services.bigquery.model.TimePartitioning
getTimePartitioning()
int
hashCode()
java.lang.String
toString()
TableDestination
withTableReference(com.google.api.services.bigquery.model.TableReference tableReference)
-
-
-
Constructor Detail
-
TableDestination
public TableDestination(java.lang.String tableSpec, @Nullable java.lang.String tableDescription)
-
TableDestination
public TableDestination(com.google.api.services.bigquery.model.TableReference tableReference, @Nullable java.lang.String tableDescription)
-
TableDestination
public TableDestination(com.google.api.services.bigquery.model.TableReference tableReference, @Nullable java.lang.String tableDescription, com.google.api.services.bigquery.model.TimePartitioning timePartitioning)
-
TableDestination
public TableDestination(java.lang.String tableSpec, @Nullable java.lang.String tableDescription, com.google.api.services.bigquery.model.TimePartitioning timePartitioning)
-
TableDestination
public TableDestination(java.lang.String tableSpec, @Nullable java.lang.String tableDescription, com.google.api.services.bigquery.model.TimePartitioning timePartitioning, com.google.api.services.bigquery.model.Clustering clustering)
-
TableDestination
public TableDestination(java.lang.String tableSpec, @Nullable java.lang.String tableDescription, @Nullable java.lang.String jsonTimePartitioning)
-
TableDestination
public TableDestination(com.google.api.services.bigquery.model.TableReference tableReference, @Nullable java.lang.String tableDescription, @Nullable java.lang.String jsonTimePartitioning)
-
TableDestination
public TableDestination(com.google.api.services.bigquery.model.TableReference tableReference, @Nullable java.lang.String tableDescription, @Nullable java.lang.String jsonTimePartitioning, @Nullable java.lang.String jsonClustering)
-
TableDestination
public TableDestination(java.lang.String tableSpec, @Nullable java.lang.String tableDescription, @Nullable java.lang.String jsonTimePartitioning, @Nullable java.lang.String jsonClustering)
-
-
Method Detail
-
withTableReference
public TableDestination withTableReference(com.google.api.services.bigquery.model.TableReference tableReference)
-
getTableSpec
public java.lang.String getTableSpec()
Return the tablespec in [project:].dataset.tableid format.
-
getTableUrn
public java.lang.String getTableUrn()
Return the tablespec in projects/[project]/datasets/[dataset]/tables/[table] format.
-
getTableReference
public com.google.api.services.bigquery.model.TableReference getTableReference()
-
getJsonTimePartitioning
public @Nullable java.lang.String getJsonTimePartitioning()
-
getTimePartitioning
public @Nullable com.google.api.services.bigquery.model.TimePartitioning getTimePartitioning()
-
getJsonClustering
public @Nullable java.lang.String getJsonClustering()
-
getClustering
public @Nullable com.google.api.services.bigquery.model.Clustering getClustering()
-
getTableDescription
public @Nullable java.lang.String getTableDescription()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(@Nullable java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-