Class PortableBigQueryDestinations
java.lang.Object
org.apache.beam.sdk.io.gcp.bigquery.DynamicDestinations<Row,String>
org.apache.beam.sdk.io.gcp.bigquery.providers.PortableBigQueryDestinations
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPortableBigQueryDestinations(Schema rowSchema, BigQueryWriteConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptiongetAvroFilterFormatFunction(boolean fetchNestedRecord) getDestination(@Nullable ValueInSingleWindow<Row> element) Returns an object that represents at a high level which table is being written to.SerializableFunction<Row, com.google.api.services.bigquery.model.TableRow> getFilterFormatFunction(boolean fetchNestedRecord) @Nullable com.google.api.services.bigquery.model.TableSchemaReturns the table schema for the destination.Returns aTableDestinationobject for the destination.@Nullable com.google.api.services.bigquery.model.TableConstraintsgetTableConstraints(String destination) Returns TableConstraints (including primary and foreign key) to be used when creating the table.Methods inherited from class org.apache.beam.sdk.io.gcp.bigquery.DynamicDestinations
getDestinationCoder, getSideInputs, sideInput
-
Field Details
-
DESTINATION
- See Also:
-
RECORD
- See Also:
-
-
Constructor Details
-
PortableBigQueryDestinations
-
-
Method Details
-
getDestination
Description copied from class:DynamicDestinationsReturns 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:
getDestinationin classDynamicDestinations<Row,String>
-
getTable
Description copied from class:DynamicDestinationsReturns aTableDestinationobject for the destination. May not return null. Return value needs to be unique to each destination: may not return the sameTableDestinationfor different destinations.- Specified by:
getTablein classDynamicDestinations<Row,String>
-
getSchema
Description copied from class:DynamicDestinationsReturns the table schema for the destination.- Specified by:
getSchemain classDynamicDestinations<Row,String>
-
getTableConstraints
public @Nullable com.google.api.services.bigquery.model.TableConstraints getTableConstraints(String destination) Description copied from class:DynamicDestinationsReturns TableConstraints (including primary and foreign key) to be used when creating the table. Note: this is not currently supported when using FILE_LOADS!.- Overrides:
getTableConstraintsin classDynamicDestinations<Row,String>
-
getFilterFormatFunction
public SerializableFunction<Row,com.google.api.services.bigquery.model.TableRow> getFilterFormatFunction(boolean fetchNestedRecord) -
getAvroFilterFormatFunction
public SerializableFunction<AvroWriteRequest<Row>,GenericRecord> getAvroFilterFormatFunction(boolean fetchNestedRecord)
-