java.lang.Object
org.apache.beam.sdk.io.gcp.bigquery.DynamicDestinations<T,DestinationT>
org.apache.beam.sdk.io.gcp.bigquery.StorageApiDynamicDestinationsTableRow<T,DestinationT>
- All Implemented Interfaces:
Serializable
public class StorageApiDynamicDestinationsTableRow<T,DestinationT extends @NonNull Object>
extends DynamicDestinations<T,DestinationT>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetDestination
(@Nullable ValueInSingleWindow<T> element) Returns an object that represents at a high level which table is being written to.Returns the coder forDynamicDestinations
.org.apache.beam.sdk.io.gcp.bigquery.StorageApiDynamicDestinations.MessageConverter
<T> getMessageConverter
(DestinationT destination, BigQueryServices.DatasetService datasetService) getSchema
(DestinationT destination) Returns the table schema for the destination.List
<PCollectionView<?>> Specifies that this object needs access to one or more side inputs.getTable
(DestinationT destination) Returns aTableDestination
object for the destination.getTableConstraints
(DestinationT destination) Returns TableConstraints (including primary and foreign key) to be used when creating the table.toString()
Methods inherited from class org.apache.beam.sdk.io.gcp.bigquery.DynamicDestinations
sideInput
-
Method Details
-
getMessageConverter
public org.apache.beam.sdk.io.gcp.bigquery.StorageApiDynamicDestinations.MessageConverter<T> getMessageConverter(DestinationT destination, BigQueryServices.DatasetService datasetService) throws Exception - Throws:
Exception
-
getDestination
Description copied from class:DynamicDestinations
Returns an object that represents at a high level which table is being written to. May not return null.The method must return a unique object for different destination tables involved over all BigQueryIO write transforms in the same pipeline. See https://github.com/apache/beam/issues/32335 for details.
- Specified by:
getDestination
in classDynamicDestinations<T,
DestinationT>
-
getSchema
Description copied from class:DynamicDestinations
Returns the table schema for the destination.- Specified by:
getSchema
in classDynamicDestinations<T,
DestinationT>
-
getTableConstraints
Description copied from class:DynamicDestinations
Returns TableConstraints (including primary and foreign key) to be used when creating the table. Note: this is not currently supported when using FILE_LOADS!.- Overrides:
getTableConstraints
in classDynamicDestinations<T,
DestinationT>
-
getTable
Description copied from class:DynamicDestinations
Returns aTableDestination
object for the destination. May not return null. Return value needs to be unique to each destination: may not return the sameTableDestination
for different destinations.- Specified by:
getTable
in classDynamicDestinations<T,
DestinationT>
-
getDestinationCoder
Description copied from class:DynamicDestinations
Returns the coder forDynamicDestinations
. If this is not overridden, thenBigQueryIO
will look in the coder registry for a suitable coder. This must be a deterministic coder, asDynamicDestinations
will be used as a key type in aGroupByKey
.- Overrides:
getDestinationCoder
in classDynamicDestinations<T,
DestinationT>
-
getSideInputs
Description copied from class:DynamicDestinations
Specifies that this object needs access to one or more side inputs. This side inputs must be globally windowed, as they will be accessed from the global window.- Overrides:
getSideInputs
in classDynamicDestinations<T,
DestinationT>
-
toString
-