public static class FhirIO.ExecuteBundlesResult extends FhirIO.Write.AbstractResult
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<HealthcareIOError<java.lang.String>> |
getFailedBodies() |
PCollection<HealthcareIOError<FhirBundleParameter>> |
getFailedBundles()
Gets failed FhirBundleResponse wrapped inside HealthcareIOError.
|
PCollection<HealthcareIOError<java.lang.String>> |
getFailedFiles() |
Pipeline |
getPipeline()
|
PCollection<java.lang.String> |
getSuccessfulBodies() |
PCollection<FhirBundleResponse> |
getSuccessfulBundles()
Gets successful FhirBundleResponse from execute bundles operation.
|
static FhirIO.ExecuteBundlesResult |
in(Pipeline pipeline,
PCollection<FhirBundleResponse> successfulBundles,
PCollection<HealthcareIOError<FhirBundleParameter>> failedBundles)
Entry point for the ExecuteBundlesResult, storing the successful and failed bundles and their
metadata.
|
public static FhirIO.ExecuteBundlesResult in(Pipeline pipeline, PCollection<FhirBundleResponse> successfulBundles, PCollection<HealthcareIOError<FhirBundleParameter>> failedBundles)
public PCollection<java.lang.String> getSuccessfulBodies()
getSuccessfulBodies
in class FhirIO.Write.AbstractResult
public PCollection<FhirBundleResponse> getSuccessfulBundles()
public PCollection<HealthcareIOError<java.lang.String>> getFailedBodies()
getFailedBodies
in class FhirIO.Write.AbstractResult
public PCollection<HealthcareIOError<FhirBundleParameter>> getFailedBundles()
public PCollection<HealthcareIOError<java.lang.String>> getFailedFiles()
getFailedFiles
in class FhirIO.Write.AbstractResult
public Pipeline getPipeline()
POutput
getPipeline
in interface POutput
getPipeline
in class FhirIO.Write.AbstractResult
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
finishSpecifyingOutput
in class FhirIO.Write.AbstractResult