Class HL7v2IO.HL7v2Read
java.lang.Object
org.apache.beam.sdk.transforms.PTransform<PCollection<HL7v2ReadParameter>,HL7v2IO.HL7v2Read.Result>
org.apache.beam.sdk.io.gcp.healthcare.HL7v2IO.HL7v2Read
- All Implemented Interfaces:
Serializable
,HasDisplayData
- Enclosing class:
HL7v2IO
public static class HL7v2IO.HL7v2Read
extends PTransform<PCollection<HL7v2ReadParameter>,HL7v2IO.HL7v2Read.Result>
The type Read that reads HL7v2 message contents given a PCollection of
HL7v2ReadParameter
.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
PTransform
to fetch a message from an Google Cloud Healthcare HL7v2 store based on msgID.static class
The type Result includesPCollection
ofHL7v2ReadResponse
objects for successfully read results andPCollection
ofHealthcareIOError
objects for failed reads. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TupleTag
<HealthcareIOError<HL7v2ReadParameter>> The tag for the deadletter output of HL7v2 read responses.static final TupleTag
<HL7v2ReadResponse> The tag for the main output of HL7v2 read responses.Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexpand
(PCollection<HL7v2ReadParameter> input) Override this method to specify how thisPTransform
should be expanded on the givenInputT
.Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setDisplayData, setResourceHints, toString, validate, validate
-
Field Details
-
OUT
The tag for the main output of HL7v2 read responses. -
DEAD_LETTER
The tag for the deadletter output of HL7v2 read responses.
-
-
Constructor Details
-
HL7v2Read
public HL7v2Read()
-
-
Method Details
-
expand
Description copied from class:PTransform
Override this method to specify how thisPTransform
should be expanded on the givenInputT
.NOTE: This method should not be called directly. Instead apply the
PTransform
should be applied to theInputT
using theapply
method.Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
- Specified by:
expand
in classPTransform<PCollection<HL7v2ReadParameter>,
HL7v2IO.HL7v2Read.Result>
-