public final class WriteResult extends java.lang.Object implements POutput
BigQueryIO.Write transform.| Modifier and Type | Method and Description |
|---|---|
java.util.Map<TupleTag<?>,PValue> |
expand()
|
void |
finishSpecifyingOutput(java.lang.String transformName,
PInput input,
PTransform<?,?> transform)
As part of applying the producing
PTransform, finalizes this output to make it ready
for being used as an input and for running. |
PCollection<TableRow> |
getFailedInserts()
Returns a
PCollection containing the TableRows that didn't made it to BQ. |
PCollection<BigQueryInsertError> |
getFailedInsertsWithErr()
Returns a
PCollection containing the BigQueryInsertErrors with detailed error
information. |
Pipeline |
getPipeline()
|
public java.util.Map<TupleTag<?>,PValue> expand()
POutputPOutput into a list of its component output PValues.
PValue expands to itself.
PValues (such as PCollectionTuple or PCollectionList) expands to its component PValue PValues.
Not intended to be invoked directly by user code.
public PCollection<TableRow> getFailedInserts()
PCollection containing the TableRows that didn't made it to BQ.
Only use this method if you haven't enabled BigQueryIO.Write.withExtendedErrorInfo(). Otherwise use getFailedInsertsWithErr()
public 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 Pipeline getPipeline()
POutputgetPipeline in interface POutputpublic void finishSpecifyingOutput(java.lang.String transformName,
PInput input,
PTransform<?,?> transform)
POutputPTransform, finalizes this output to make it ready
for being used as an input and for running.
This includes ensuring that all PCollections have Coders specified or defaulted.
Automatically invoked whenever this POutput is output, after POutput.finishSpecifyingOutput(String, PInput, PTransform) has been called on each component
PValue returned by POutput.expand().
finishSpecifyingOutput in interface POutput