public class StreamingInserts<DestinationT> extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<DestinationT,com.google.api.services.bigquery.model.TableRow>>,WriteResult>
| Constructor and Description |
|---|
StreamingInserts(BigQueryIO.Write.CreateDisposition createDisposition,
DynamicDestinations<?,DestinationT> dynamicDestinations)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
WriteResult |
expand(org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<DestinationT,com.google.api.services.bigquery.model.TableRow>> input) |
StreamingInserts<DestinationT> |
withExtendedErrorInfo(boolean extendedErrorInfo)
Specify whether to use extended error info or not.
|
StreamingInserts<DestinationT> |
withInsertRetryPolicy(InsertRetryPolicy retryPolicy)
Specify a retry policy for failed inserts.
|
public StreamingInserts(BigQueryIO.Write.CreateDisposition createDisposition, DynamicDestinations<?,DestinationT> dynamicDestinations)
public StreamingInserts<DestinationT> withInsertRetryPolicy(InsertRetryPolicy retryPolicy)
public StreamingInserts<DestinationT> withExtendedErrorInfo(boolean extendedErrorInfo)
public WriteResult expand(org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<DestinationT,com.google.api.services.bigquery.model.TableRow>> input)
expand in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<DestinationT,com.google.api.services.bigquery.model.TableRow>>,WriteResult>