Class HL7v2IO.Read

All Implemented Interfaces:
Serializable, HasDisplayData
Enclosing class:
HL7v2IO

public static class HL7v2IO.Read extends PTransform<PCollection<String>,HL7v2IO.Read.Result>
The type Read that reads HL7v2 message contents given a PCollection of message IDs strings.

These could be sourced from any PCollection of Strings but the most popular patterns would be PubsubIO.readStrings() reading a subscription on an HL7v2 Store's notification channel topic or using HL7v2IO.ListHL7v2Messages to list HL7v2 message IDs with an optional filter using Ingest write method. @see .

See Also:
  • Field Details

  • Constructor Details

    • Read

      public Read()
  • Method Details

    • expand

      public HL7v2IO.Read.Result expand(PCollection<String> input)
      Description copied from class: PTransform
      Override this method to specify how this PTransform should be expanded on the given InputT.

      NOTE: This method should not be called directly. Instead apply the PTransform should be applied to the InputT using the apply 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 class PTransform<PCollection<String>,HL7v2IO.Read.Result>