EventT
- StateT
- public interface EventExaminer<EventT,StateT extends MutableState<EventT,?>>
extends java.io.Serializable
OrderedEventProcessor
to examine every
incoming event.Modifier and Type | Method and Description |
---|---|
StateT |
createStateOnInitialEvent(EventT event)
If the event was the first event for a given key, create the state to hold the required data
needed for processing.
|
boolean |
isInitialEvent(long sequenceNumber,
EventT event)
Is this event the first expected event for the given key and window if the per key sequence is
used? In case of global sequence it determines the first global sequence event.
|
boolean |
isLastEvent(long sequenceNumber,
EventT event)
Is this event the last expected event for a given key and window?
|
boolean isInitialEvent(long sequenceNumber, EventT event)
sequenceNumber
- the sequence number of the event as defined by the key of the input
PCollection to OrderedEventProcessor
event
- being processedStateT createStateOnInitialEvent(EventT event)
event
- the first event in the sequence.boolean isLastEvent(long sequenceNumber, EventT event)
Note, this method is not used yet with global sequences.
sequenceNumber
- of the eventevent
- being processed