public class PrepareWrite<T,DestinationT>
extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<T>,org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<DestinationT,com.google.api.services.bigquery.model.TableRow>>>
PCollection for writing to BigQuery. Use the table function to determine
which tables each element is written to, and format the element into a TableRow using the
user-supplied format function.| Constructor and Description |
|---|
PrepareWrite(DynamicDestinations<T,DestinationT> dynamicDestinations,
org.apache.beam.sdk.transforms.SerializableFunction<T,com.google.api.services.bigquery.model.TableRow> formatFunction) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<DestinationT,com.google.api.services.bigquery.model.TableRow>> |
expand(org.apache.beam.sdk.values.PCollection<T> input) |
public PrepareWrite(DynamicDestinations<T,DestinationT> dynamicDestinations, org.apache.beam.sdk.transforms.SerializableFunction<T,com.google.api.services.bigquery.model.TableRow> formatFunction)
public org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<DestinationT,com.google.api.services.bigquery.model.TableRow>> expand(org.apache.beam.sdk.values.PCollection<T> input)
expand in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<T>,org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<DestinationT,com.google.api.services.bigquery.model.TableRow>>>