SteNicholas commented on code in PR #20029:
URL: https://github.com/apache/flink/pull/20029#discussion_r905908590
##########
flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/NFA.java:
##########
@@ -91,6 +92,13 @@
*/
private final Map<String, State<T>> states;
+ /**
+ * The lengths of a windowed pattern, as specified using the {@link
+ * org.apache.flink.cep.pattern.Pattern#within(Time, Pattern.WithinType)}
Pattern.within(Time,
+ * WithinType)} method with {@code WithinType.PREVIOUS_AND_CURRENT}.
+ */
+ private final Map<String, Long> windowTimes;
Review Comment:
@dianfu, IMO, the windowTime between previous and current event doesn't need
to move to the `State`. Because this windowTime is the timeout condition of the
NFA state, which state doesn't need to include the condition.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]