Class StorageApiDynamicDestinationsTableRow<T,​DestinationT extends @NonNull java.lang.Object>

  • All Implemented Interfaces:
    java.io.Serializable

    public class StorageApiDynamicDestinationsTableRow<T,​DestinationT extends @NonNull java.lang.Object>
    extends DynamicDestinations<T,​DestinationT>
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DestinationT getDestination​(@Nullable org.apache.beam.sdk.values.ValueInSingleWindow<T> element)
      Returns an object that represents at a high level which table is being written to.
      @Nullable org.apache.beam.sdk.coders.Coder<DestinationT> getDestinationCoder()
      Returns the coder for DynamicDestinations.
      org.apache.beam.sdk.io.gcp.bigquery.StorageApiDynamicDestinations.MessageConverter<T> getMessageConverter​(DestinationT destination, BigQueryServices.DatasetService datasetService)  
      @Nullable com.google.api.services.bigquery.model.TableSchema getSchema​(DestinationT destination)
      Returns the table schema for the destination.
      java.util.List<org.apache.beam.sdk.values.PCollectionView<?>> getSideInputs()
      Specifies that this object needs access to one or more side inputs.
      TableDestination getTable​(DestinationT destination)
      Returns a TableDestination object for the destination.
      @Nullable com.google.api.services.bigquery.model.TableConstraints getTableConstraints​(DestinationT destination)
      Returns TableConstraints (including primary and foreign key) to be used when creating the table.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getMessageConverter

        public org.apache.beam.sdk.io.gcp.bigquery.StorageApiDynamicDestinations.MessageConverter<T> getMessageConverter​(DestinationT destination,
                                                                                                                         BigQueryServices.DatasetService datasetService)
                                                                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getDestination

        public DestinationT getDestination​(@Nullable org.apache.beam.sdk.values.ValueInSingleWindow<T> element)
        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 class DynamicDestinations<T,​DestinationT>
      • getSchema

        public @Nullable com.google.api.services.bigquery.model.TableSchema getSchema​(DestinationT destination)
        Description copied from class: DynamicDestinations
        Returns the table schema for the destination.
        Specified by:
        getSchema in class DynamicDestinations<T,​DestinationT>
      • getTableConstraints

        public @Nullable com.google.api.services.bigquery.model.TableConstraints getTableConstraints​(DestinationT destination)
        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 class DynamicDestinations<T,​DestinationT>
      • getSideInputs

        public java.util.List<org.apache.beam.sdk.values.PCollectionView<?>> 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 class DynamicDestinations<T,​DestinationT>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object