[
https://issues.apache.org/jira/browse/FLINK-6244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16138092#comment-16138092
]
ASF GitHub Bot commented on FLINK-6244:
---------------------------------------
Github user tedyu commented on a diff in the pull request:
https://github.com/apache/flink/pull/4320#discussion_r134692117
--- Diff:
flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/operator/AbstractKeyedCEPPatternOperator.java
---
@@ -348,7 +353,18 @@ private void updateNFA(NFA<IN> nfa) throws IOException
{
* @param event The current event to be processed
* @param timestamp The timestamp of the event
*/
- protected abstract void processEvent(NFA<IN> nfa, IN event, long
timestamp);
+ private void processEvent(NFA<IN> nfa, IN event, long timestamp) {
+ Tuple2<Collection<Map<String, List<IN>>>,
Collection<Tuple2<Map<String, List<IN>>, Long>>> patterns =
+ nfa.process(event, timestamp);
+
+ try {
+ processMatchedSequences(patterns.f0, timestamp);
--- End diff --
processMatchedSequences -> processMatchingSequences
> Emit timeouted Patterns as Side Output
> --------------------------------------
>
> Key: FLINK-6244
> URL: https://issues.apache.org/jira/browse/FLINK-6244
> Project: Flink
> Issue Type: Improvement
> Components: CEP
> Affects Versions: 1.3.0
> Reporter: Dawid Wysakowicz
> Assignee: Dawid Wysakowicz
> Fix For: 1.4.0
>
>
> Now that we have SideOuputs I think timeouted patterns should be emitted into
> them rather than producing a stream of `Either`
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)