Class WriteResult
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.bigquery.WriteResult
-
- All Implemented Interfaces:
org.apache.beam.sdk.values.POutput
public final class WriteResult extends java.lang.Object implements org.apache.beam.sdk.values.POutputThe result of aBigQueryIO.Writetransform.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<org.apache.beam.sdk.values.TupleTag<?>,org.apache.beam.sdk.values.PValue>expand()voidfinishSpecifyingOutput(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 aPCollectioncontaining theTableRows that didn't make it to BQ.org.apache.beam.sdk.values.PCollection<BigQueryInsertError>getFailedInsertsWithErr()Returns aPCollectioncontaining theBigQueryInsertErrors with detailed error information.org.apache.beam.sdk.values.PCollection<BigQueryStorageApiInsertError>getFailedStorageApiInserts()org.apache.beam.sdk.PipelinegetPipeline()org.apache.beam.sdk.values.PCollection<com.google.api.services.bigquery.model.TableRow>getSuccessfulInserts()Returns aPCollectioncontaining theTableRows that were written to BQ via the streaming insert API.org.apache.beam.sdk.values.PCollection<TableDestination>getSuccessfulTableLoads()Returns aPCollectioncontaining theTableDestinations that were successfully loaded using the batch load API.
-
-
-
Method Detail
-
expand
public java.util.Map<org.apache.beam.sdk.values.TupleTag<?>,org.apache.beam.sdk.values.PValue> expand()
- Specified by:
expandin interfaceorg.apache.beam.sdk.values.POutput
-
getSuccessfulTableLoads
public org.apache.beam.sdk.values.PCollection<TableDestination> getSuccessfulTableLoads()
Returns aPCollectioncontaining theTableDestinations that were successfully loaded using the batch load API.
-
getSuccessfulInserts
public org.apache.beam.sdk.values.PCollection<com.google.api.services.bigquery.model.TableRow> getSuccessfulInserts()
Returns aPCollectioncontaining theTableRows that were written to BQ via the streaming insert API.
-
getFailedInserts
public org.apache.beam.sdk.values.PCollection<com.google.api.services.bigquery.model.TableRow> getFailedInserts()
Returns aPCollectioncontaining theTableRows that didn't make it to BQ.Only use this method if you haven't enabled
BigQueryIO.Write.withExtendedErrorInfo(). Otherwise usegetFailedInsertsWithErr()
-
getFailedInsertsWithErr
public org.apache.beam.sdk.values.PCollection<BigQueryInsertError> getFailedInsertsWithErr()
Returns aPCollectioncontaining theBigQueryInsertErrors with detailed error information.Only use this method if you have enabled
BigQueryIO.Write.withExtendedErrorInfo(). Otherwise usegetFailedInserts()
-
getFailedStorageApiInserts
public org.apache.beam.sdk.values.PCollection<BigQueryStorageApiInsertError> getFailedStorageApiInserts()
-
getPipeline
public org.apache.beam.sdk.Pipeline getPipeline()
- Specified by:
getPipelinein interfaceorg.apache.beam.sdk.values.POutput
-
finishSpecifyingOutput
public void finishSpecifyingOutput(java.lang.String transformName, org.apache.beam.sdk.values.PInput input, org.apache.beam.sdk.transforms.PTransform<?,?> transform)- Specified by:
finishSpecifyingOutputin interfaceorg.apache.beam.sdk.values.POutput
-
-