Class SolaceOutput
java.lang.Object
org.apache.beam.sdk.io.solace.write.SolaceOutput
- All Implemented Interfaces:
POutput
The
SolaceIO.Write transform's output return this type, containing the successful
publishes (getSuccessfulPublish()). To access failed records, configure the connector
with SolaceIO.Write.withErrorHandler(ErrorHandler).
The streaming writer with DIRECT messages does not return anything, and the output PCollection will be equal to null.
-
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.static SolaceOutputin(Pipeline pipeline, @Nullable PCollection<Solace.PublishResult> successfulPublish)
-
Method Details
-
getSuccessfulPublish
-
in
public static SolaceOutput in(Pipeline pipeline, @Nullable PCollection<Solace.PublishResult> successfulPublish) -
getPipeline
Description copied from interface:POutput- Specified by:
getPipelinein interfacePOutput
-
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
-