Class HL7v2IO.Read.FetchHL7v2Message
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<java.lang.String>,HL7v2IO.Read.Result>
-
- org.apache.beam.sdk.io.gcp.healthcare.HL7v2IO.Read.FetchHL7v2Message
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.beam.sdk.transforms.display.HasDisplayData
- Enclosing class:
- HL7v2IO.Read
public static class HL7v2IO.Read.FetchHL7v2Message extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<java.lang.String>,HL7v2IO.Read.Result>
PTransform
to fetch a message from an Google Cloud Healthcare HL7v2 store based on msgID.This DoFn consumes a
PCollection
of notificationsString
s from the HL7v2 store, and fetches the actualHL7v2Message
object based on the id in the notification and will output aPCollectionTuple
which contains the output and dead-letterPCollection
.The
PCollectionTuple
output will contain the followingPCollection
:HL7v2IO.Read.OUT
- Contains allPCollection
records successfully read from the HL7v2 store.HL7v2IO.Read.DEAD_LETTER
- Contains allPCollection
ofHealthcareIOError
message IDs which failed to be fetched from the HL7v2 store, with error message and stacktrace.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HL7v2IO.Read.FetchHL7v2Message.HL7v2MessageGetFn
DoFn for fetching messages from the HL7v2 store with error handling.
-
Constructor Summary
Constructors Constructor Description FetchHL7v2Message()
Instantiates a new Fetch HL7v2 message DoFn.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HL7v2IO.Read.Result
expand(org.apache.beam.sdk.values.PCollection<java.lang.String> msgIds)
-
-
-
Method Detail
-
expand
public HL7v2IO.Read.Result expand(org.apache.beam.sdk.values.PCollection<java.lang.String> msgIds)
- Specified by:
expand
in classorg.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<java.lang.String>,HL7v2IO.Read.Result>
-
-