Class StreamingWriteTables<ElementT>
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<TableDestination,ElementT>>,WriteResult>
-
- org.apache.beam.sdk.io.gcp.bigquery.StreamingWriteTables<ElementT>
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.beam.sdk.transforms.display.HasDisplayData
public class StreamingWriteTables<ElementT> extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<TableDestination,ElementT>>,WriteResult>
This transform takes in key-value pairs ofTableRow
entries and theTableDestination
it should be written to. The BigQuery streaming-write service is used to stream these writes to the appropriate table.This transform assumes that all destination tables already exist by the time it sees a write for that table.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StreamingWriteTables()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WriteResult
expand(org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<TableDestination,ElementT>> input)
-
-
-
Method Detail
-
expand
public WriteResult expand(org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<TableDestination,ElementT>> input)
- Specified by:
expand
in classorg.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<TableDestination,ElementT>>,WriteResult>
-
-