public abstract static class JsonToRow.ParseResult extends java.lang.Object implements POutput
JsonToRow.withExceptionReporting(Schema)
transform.Modifier and Type | Class and Description |
---|---|
static class |
JsonToRow.ParseResult.Builder |
Constructor and Description |
---|
ParseResult() |
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<Row> |
getFailedToParseLines()
Returns a
PCollection containing the Row s that didn't parse. |
Pipeline |
getPipeline()
|
PCollection<Row> |
getResults()
Returns a
PCollection containing the Row s that have been parsed. |
static JsonToRow.ParseResult.Builder |
resultBuilder() |
public static JsonToRow.ParseResult.Builder resultBuilder()
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
public PCollection<Row> getResults()
PCollection
containing the Row
s that have been parsed.public PCollection<Row> getFailedToParseLines()
PCollection
containing the Row
s that didn't parse.
If JsonToRow.JsonToRowWithErrFn.withExtendedErrorInfo()
was set then the schema will also
include the error message.