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.getFilterFormatFunction(boolean fetchNestedRecord) Returns the table schema for the destination.Returns aTableDestinationobject for the destination.getTableConstraints(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
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
-
getAvroFilterFormatFunction
public SerializableFunction<AvroWriteRequest<Row>,GenericRecord> getAvroFilterFormatFunction(boolean fetchNestedRecord)
-