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 classPTransformto fetch a message from an Google Cloud Healthcare HL7v2 store based on msgID.static classThe type Result includesPCollectionofHL7v2ReadResponseobjects for successfully read results andPCollectionofHealthcareIOErrorobjects 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 thisPTransformshould 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:PTransformOverride this method to specify how thisPTransformshould be expanded on the givenInputT.NOTE: This method should not be called directly. Instead apply the
PTransformshould be applied to theInputTusing theapplymethod.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:
expandin classPTransform<PCollection<HL7v2ReadParameter>,HL7v2IO.HL7v2Read.Result>
-