Class OrderedEventProcessorResult<KeyT,ResultT,EventT>
java.lang.Object
org.apache.beam.sdk.extensions.ordered.OrderedEventProcessorResult<KeyT,ResultT,EventT>
- Type Parameters:
KeyT-ResultT-
- All Implemented Interfaces:
POutput
The result of the ordered processing. Three PCollections are returned:
output - the key/value of the mutated states
unprocessedEvents - the key/value of the events that failed to be processed and the failure
reason
processingStatuses - the key/value of the status of processing for a particular key
In case of global sequence processing, the result also contains PCollectionView of the latest contiguous sequence range
-
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.output()
-
Method Details
-
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
-
processingStatuses
- Returns:
- processing status for a particular key. The elements will have the timestamp of the instant the status was emitted.
-
output
- Returns:
- processed states keyed by the original key
-
unprocessedEvents
- Returns:
- events which failed to process, including the reasons for failure.
-
latestContiguousRange
- Returns:
- a view to a calculated side input with the last contiguous range. Note: an iterator is
returned instead of a single value. Use
ContiguousSequenceRange.largestRange(Iterable)to get the largest range.
-