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()
void
finishSpecifyingOutput
(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:
getPipeline
in interfacePOutput
-
expand
Description copied from interface:POutput
Expands thisPOutput
into a list of its component outputPValues
.- A
PValue
expands to itself. - A tuple or list of
PValues
(such asPCollectionTuple
orPCollectionList
) expands to its componentPValue PValues
.
Not intended to be invoked directly by user code.
- A
-
finishSpecifyingOutput
Description copied from interface:POutput
As 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
PCollections
haveCoders
specified or defaulted.Automatically invoked whenever this
POutput
is output, afterPOutput.finishSpecifyingOutput(String, PInput, PTransform)
has been called on each componentPValue
returned byPOutput.expand()
.- Specified by:
finishSpecifyingOutput
in 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.
-