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()Return any rows that persistently fail to insert when using a storage-api method.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<com.google.api.services.bigquery.model.TableRow>getSuccessfulStorageApiInserts()Return all rows successfully inserted using one of the storage-api insert methods.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()
Return any rows that persistently fail to insert when using a storage-api method. For example: rows with values that do not match the BigQuery schema or rows that are too large to insert. This collection is in the global window.
-
getSuccessfulStorageApiInserts
public org.apache.beam.sdk.values.PCollection<com.google.api.services.bigquery.model.TableRow> getSuccessfulStorageApiInserts()
Return all rows successfully inserted using one of the storage-api insert methods. Rows undergo a conversion process, so while these TableRow objects are logically the same as the rows in the initial PCollection, they may not be physically identical. This PCollection is in the global window.
-
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
-
-