OutputT - Output typeFailureElementT - Element type for the failure PCollectionpublic abstract static class WithFailures.Result<OutputT extends POutput,FailureElementT> extends java.lang.Object implements PInput, POutput
| Constructor and Description |
|---|
Result() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<TupleTag<?>,PValue> |
expand()
|
abstract PCollection<FailureElementT> |
failures() |
OutputT |
failuresTo(java.util.List<PCollection<FailureElementT>> failureCollections)
Adds the failure collection to the passed list and returns just the output collection.
|
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. |
Pipeline |
getPipeline()
|
static <OutputT extends POutput,FailureElementT> |
of(OutputT output,
PCollection<FailureElementT> failures) |
static <OutputElementT,FailureElementT> |
of(PCollection<OutputElementT> output,
PCollection<FailureElementT> failures) |
static <OutputElementT,FailureElementT> |
of(PCollectionTuple tuple,
TupleTag<OutputElementT> outputTag,
TupleTag<FailureElementT> failureTag) |
abstract OutputT |
output() |
public abstract OutputT output()
public abstract PCollection<FailureElementT> failures()
public static <OutputT extends POutput,FailureElementT> WithFailures.Result<OutputT,FailureElementT> of(OutputT output, PCollection<FailureElementT> failures)
public static <OutputElementT,FailureElementT> WithFailures.Result<PCollection<OutputElementT>,FailureElementT> of(PCollection<OutputElementT> output, PCollection<FailureElementT> failures)
public static <OutputElementT,FailureElementT> WithFailures.Result<PCollection<OutputElementT>,FailureElementT> of(PCollectionTuple tuple, TupleTag<OutputElementT> outputTag, TupleTag<FailureElementT> failureTag)
public OutputT failuresTo(java.util.List<PCollection<FailureElementT>> failureCollections)
public Pipeline getPipeline()
PInputgetPipeline in interface PInputgetPipeline in interface POutputpublic java.util.Map<TupleTag<?>,PValue> expand()
PInputPInput 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 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