September 2017
Beginner to intermediate
360 pages
8h 13m
English
Once you have created a pattern then you have to apply the pattern on the data stream to match the pattern. The following is the way to do this by code:
DataStream<Event> input = ...Pattern<Event, ?> pattern = ...PatternStream<Event> patternStream = CEP.pattern(input, pattern);
Here you have to create the PatternStream using the input data stream and pattern that you have created. Now the PatternStream will have the events that will match the pattern defined.
Read now
Unlock full access