Class OrderedProcessingStatus
java.lang.Object
org.apache.beam.sdk.extensions.ordered.OrderedProcessingStatus
Indicates the status of ordered processing for a particular key.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OrderedProcessingStatuscreate(Long lastProcessedSequence, long numberOfBufferedEvents, Long earliestBufferedSequence, Long latestBufferedSequence, long numberOfReceivedEvents, long resultCount, long duplicateCount, boolean lastEventReceived, ContiguousSequenceRange lastContiguousRange) final booleanabstract longReturns number of duplicate events which were output inOrderedEventProcessorResult.unprocessedEvents()PCollection.abstract LongReturns earliest buffered sequence.abstract ContiguousSequenceRangeabstract LongReturns last sequence processed.abstract LongReturns latest buffered sequence.abstract longReturns number of events received out of sequence and buffered.abstract longReturns total number of events received for the given key and window.abstract longReturns number of output results produced.abstract InstantReturns timestamp of when the status was produced.final inthashCode()abstract booleanReturns indicator that the last event for the given key and window has been received.
-
Constructor Details
-
OrderedProcessingStatus
public OrderedProcessingStatus()
-
-
Method Details
-
create
public static OrderedProcessingStatus create(@Nullable Long lastProcessedSequence, long numberOfBufferedEvents, @Nullable Long earliestBufferedSequence, @Nullable Long latestBufferedSequence, long numberOfReceivedEvents, long resultCount, long duplicateCount, boolean lastEventReceived, @Nullable ContiguousSequenceRange lastContiguousRange) -
getLastProcessedSequence
Returns last sequence processed. If null is returned - no elements for the given key and window have been processed yet. -
getNumberOfBufferedEvents
public abstract long getNumberOfBufferedEvents()Returns number of events received out of sequence and buffered. -
getEarliestBufferedSequence
Returns earliest buffered sequence. If null is returned - there are no buffered events. -
getLatestBufferedSequence
Returns latest buffered sequence. If null is returned - there are no buffered events. -
getNumberOfReceivedEvents
public abstract long getNumberOfReceivedEvents()Returns total number of events received for the given key and window. -
getDuplicateCount
public abstract long getDuplicateCount()Returns number of duplicate events which were output inOrderedEventProcessorResult.unprocessedEvents()PCollection. -
getResultCount
public abstract long getResultCount()Returns number of output results produced. -
isLastEventReceived
public abstract boolean isLastEventReceived()Returns indicator that the last event for the given key and window has been received. It doesn't necessarily mean that all the events for the given key and window have been processed. UsegetNumberOfBufferedEvents()== 0 and this indicator as the sign that the processing is complete. -
getStatusDate
Returns timestamp of when the status was produced. It is not related to the event's timestamp. -
getLastContiguousSequenceRange
-
equals
-
hashCode
public final int hashCode()
-