public final class WriteResult
extends java.lang.Object
implements org.apache.beam.sdk.values.POutput
BigQueryIO.Write transform.| Modifier and Type | Method and Description |
|---|---|
java.util.Map<org.apache.beam.sdk.values.TupleTag<?>,org.apache.beam.sdk.values.PValue> |
expand() |
void |
finishSpecifyingOutput(java.lang.String transformName,
org.apache.beam.sdk.values.PInput input,
org.apache.beam.sdk.transforms.PTransform<?,?> transform) |
org.apache.beam.sdk.values.PCollection<com.google.api.services.bigquery.model.TableRow> |
getFailedInserts()
Returns a
PCollection containing the TableRows that didn't make it to BQ. |
org.apache.beam.sdk.values.PCollection<BigQueryInsertError> |
getFailedInsertsWithErr()
Returns a
PCollection containing the BigQueryInsertErrors with detailed error
information. |
org.apache.beam.sdk.Pipeline |
getPipeline() |
org.apache.beam.sdk.values.PCollection<com.google.api.services.bigquery.model.TableRow> |
getSuccessfulInserts()
Returns a
PCollection containing the TableRows that were written to BQ via the
streaming insert API. |
org.apache.beam.sdk.values.PCollection<TableDestination> |
getSuccessfulTableLoads()
Returns a
PCollection containing the TableDestinations that were successfully
loaded using the batch load API. |
public java.util.Map<org.apache.beam.sdk.values.TupleTag<?>,org.apache.beam.sdk.values.PValue> expand()
expand in interface org.apache.beam.sdk.values.POutputpublic org.apache.beam.sdk.values.PCollection<TableDestination> getSuccessfulTableLoads()
PCollection containing the TableDestinations that were successfully
loaded using the batch load API.public org.apache.beam.sdk.values.PCollection<com.google.api.services.bigquery.model.TableRow> getSuccessfulInserts()
PCollection containing the TableRows that were written to BQ via the
streaming insert API.public org.apache.beam.sdk.values.PCollection<com.google.api.services.bigquery.model.TableRow> getFailedInserts()
PCollection containing the TableRows that didn't make it to BQ.
Only use this method if you haven't enabled BigQueryIO.Write.withExtendedErrorInfo(). Otherwise use getFailedInsertsWithErr()
public org.apache.beam.sdk.values.PCollection<BigQueryInsertError> getFailedInsertsWithErr()
PCollection containing the BigQueryInsertErrors with detailed error
information.
Only use this method if you have enabled BigQueryIO.Write.withExtendedErrorInfo().
Otherwise use getFailedInserts()
public org.apache.beam.sdk.Pipeline getPipeline()
getPipeline in interface org.apache.beam.sdk.values.POutputpublic void finishSpecifyingOutput(java.lang.String transformName,
org.apache.beam.sdk.values.PInput input,
org.apache.beam.sdk.transforms.PTransform<?,?> transform)
finishSpecifyingOutput in interface org.apache.beam.sdk.values.POutput