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 aTableDestination
object 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: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<Row,
String>
-
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<Row,
String>
-
getSchema
Description copied from class:DynamicDestinations
Returns the table schema for the destination.- Specified by:
getSchema
in classDynamicDestinations<Row,
String>
-
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<Row,
String>
-
getFilterFormatFunction
-
getAvroFilterFormatFunction
public SerializableFunction<AvroWriteRequest<Row>,GenericRecord> getAvroFilterFormatFunction(boolean fetchNestedRecord)
-