EventT
- type of events to be processedKeyT
- type of keys which will be used to group the eventsStateT
- type of internal State which will be used for processingResultT
- type of the result of the processing which will be outputpublic abstract static class OrderedProcessingHandler.OrderedProcessingGlobalSequenceHandler<EventT,KeyT,StateT extends MutableState<EventT,?>,ResultT> extends OrderedProcessingHandler<EventT,KeyT,StateT,ResultT>
OrderedProcessingHandler.OrderedProcessingGlobalSequenceHandler<EventT,KeyT,StateT extends MutableState<EventT,?>,ResultT>
DEFAULT_MAX_ELEMENTS_TO_OUTPUT
Constructor and Description |
---|
OrderedProcessingGlobalSequenceHandler(java.lang.Class<EventT> eventTClass,
java.lang.Class<KeyT> keyTClass,
java.lang.Class<StateT> stateTClass,
java.lang.Class<ResultT> resultTClass) |
Modifier and Type | Method and Description |
---|---|
Duration |
getContiguousSequenceRangeReevaluationFrequency()
How frequently the combiner should reevaluate the maximum range? This parameter only affects
the behaviour of streaming pipelines.
|
Combine.GloballyAsSingletonView<TimestampedValue<KV<KeyT,KV<java.lang.Long,EventT>>>,ContiguousSequenceRange> |
getGlobalSequenceCombiner()
Provide the global sequence combiner.
|
int |
getMaxElementCountToTriggerContinuousSequenceRangeReevaluation()
Number of new elements to trigger the re-evaluation.
|
getEventCoder, getEventExaminer, getKeyCoder, getMaxOutputElementsPerBundle, getResultCoder, getStateCoder, getStatusUpdateFrequency, isProduceStatusUpdateOnEveryEvent, setMaxOutputElementsPerBundle, setProduceStatusUpdateOnEveryEvent, setStatusUpdateFrequency
public Combine.GloballyAsSingletonView<TimestampedValue<KV<KeyT,KV<java.lang.Long,EventT>>>,ContiguousSequenceRange> getGlobalSequenceCombiner()
DefaultSequenceCombiner
.public Duration getContiguousSequenceRangeReevaluationFrequency()
This parameter is used together with getMaxElementCountToTriggerContinuousSequenceRangeReevaluation()
.
The re-evaluation will occur as soon as the number of new elements exceeds the threshold or
the time exceeds the frequency.
Notice that some runners cache the output of side inputs and this parameter might not appear to have an effect unless the cache time-to-live is equal or less than this frequency. For Dataflow runner, see this Dataflow streaming pipeline option
ContiguousSequenceRange
. Default - every
second.getMaxElementCountToTriggerContinuousSequenceRangeReevaluation()
public int getMaxElementCountToTriggerContinuousSequenceRangeReevaluation()
See getContiguousSequenceRangeReevaluationFrequency()
for
additional details.