public class CsvIOParseResult<T> extends java.lang.Object implements POutput
T
and CsvIOParseError
PCollection
results of parsing CSV records. Use
getOutput()
and getErrors()
to apply these results in a pipeline.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<CsvIOParseError> |
getErrors()
The
CsvIOParseError PCollection as a result of errors associated with parsing
CSV records. |
PCollection<T> |
getOutput()
The
T PCollection as a result of successfully parsing CSV records. |
Pipeline |
getPipeline()
|
public PCollection<T> getOutput()
T
PCollection
as a result of successfully parsing CSV records.public PCollection<CsvIOParseError> getErrors()
CsvIOParseError
PCollection
as a result of errors associated with parsing
CSV records.public Pipeline getPipeline()
POutput
getPipeline
in interface POutput
public java.util.Map<TupleTag<?>,PValue> expand()
POutput
POutput
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)
POutput
PTransform
, 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