Aitozi commented on a change in pull request #6205: [FLINK-9642]Reduce the 
count to deal with state during a CEP process
URL: https://github.com/apache/flink/pull/6205#discussion_r211186968
 
 

 ##########
 File path: 
flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/NFA.java
 ##########
 @@ -216,9 +217,12 @@ private boolean isFinalState(ComputationState state) {
                        final T event,
                        final long timestamp,
                        final AfterMatchSkipStrategy afterMatchSkipStrategy) 
throws Exception {
-               try (EventWrapper eventWrapper = new EventWrapper(event, 
timestamp, sharedBuffer)) {
-                       return doProcess(sharedBuffer, nfaState, eventWrapper, 
afterMatchSkipStrategy);
+               Collection<Map<String, List<T>>> result;
+               try (SharedBufferAccessor<T> sharedBufferAccessor = 
sharedBuffer.getAccessor();
 
 Review comment:
   OK, i will modify the parameter of `advanceTime` and another `process` as 
well to make the `NFA` only work with `SharedBufferAccessor`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to