Class FhirIO.ExecuteBundlesResult
java.lang.Object
org.apache.beam.sdk.io.gcp.healthcare.FhirIO.Write.AbstractResult
org.apache.beam.sdk.io.gcp.healthcare.FhirIO.ExecuteBundlesResult
- All Implemented Interfaces:
POutput
- Enclosing class:
FhirIO
ExecuteBundlesResult contains both successfully executed bundles and information help debugging
failed executions (eg metadata invalid input: '&' error msgs).
-
Method Summary
Modifier and TypeMethodDescriptionexpand()voidfinishSpecifyingOutput(String transformName, PInput input, PTransform<?, ?> transform) As part of applying the producingPTransform, finalizes this output to make it ready for being used as an input and for running.Gets failed FhirBundleResponse wrapped inside HealthcareIOError.Gets successful FhirBundleResponse from execute bundles operation.static FhirIO.ExecuteBundlesResultin(Pipeline pipeline, PCollection<FhirBundleResponse> successfulBundles, PCollection<HealthcareIOError<FhirBundleParameter>> failedBundles) Entry point for the ExecuteBundlesResult, storing the successful and failed bundles and their metadata.
-
Method Details
-
in
public 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. -
getSuccessfulBodies
- Specified by:
getSuccessfulBodiesin classFhirIO.Write.AbstractResult
-
getSuccessfulBundles
Gets successful FhirBundleResponse from execute bundles operation. -
getFailedBodies
- Specified by:
getFailedBodiesin classFhirIO.Write.AbstractResult
-
getFailedBundles
Gets failed FhirBundleResponse wrapped inside HealthcareIOError. The bundle field could be null. -
getFailedFiles
- Specified by:
getFailedFilesin classFhirIO.Write.AbstractResult
-
getPipeline
Description copied from interface:POutput- Specified by:
getPipelinein interfacePOutput- Overrides:
getPipelinein classFhirIO.Write.AbstractResult
-
expand
Description copied from interface:POutputExpands thisPOutputinto a list of its component outputPValues.- A
PValueexpands to itself. - A tuple or list of
PValues(such asPCollectionTupleorPCollectionList) expands to its componentPValue PValues.
Not intended to be invoked directly by user code.
- A
-
finishSpecifyingOutput
Description copied from interface:POutputAs part of applying the producingPTransform, finalizes this output to make it ready for being used as an input and for running.This includes ensuring that all
PCollectionshaveCodersspecified or defaulted.Automatically invoked whenever this
POutputis output, afterPOutput.finishSpecifyingOutput(String, PInput, PTransform)has been called on each componentPValuereturned byPOutput.expand().- Specified by:
finishSpecifyingOutputin interfacePOutput- Overrides:
finishSpecifyingOutputin classFhirIO.Write.AbstractResult
-