[ https://issues.apache.org/jira/browse/FLINK-6198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16032971#comment-16032971 ]
ASF GitHub Bot commented on FLINK-6198: --------------------------------------- Github user dawidwys commented on a diff in the pull request: https://github.com/apache/flink/pull/4041#discussion_r119604886 --- Diff: docs/dev/libs/cep.md --- @@ -98,48 +128,105 @@ val result: DataStream[Alert] = patternStream.select(createAlert(_)) </div> </div> -Note that we use Java 8 lambdas in our Java code examples to make them more succinct. - ## The Pattern API -The pattern API allows you to quickly define complex event patterns. - -Each pattern consists of multiple stages or what we call states. -In order to go from one state to the next, the user can specify conditions. -These conditions can be the contiguity of events or a filter condition on an event. - -Each pattern has to start with an initial state: +The pattern API allows you to quickly define complex pattern sequences that you want to extract +from your input stream. + +Each such complex pattern sequence consists of multiple simple patterns, i.e. patterns looking for +individual events with the same properties. These simple patterns are called **states**. A complex pattern --- End diff -- I am aware of the difficulty of naming a single pattern but I am not sure if naming it state is good idea, as internally we use State for something different. Do you think the distinction: pattern <-> pattern sequence is not enough? > Update the documentation of the CEP library to include all the new features. > ---------------------------------------------------------------------------- > > Key: FLINK-6198 > URL: https://issues.apache.org/jira/browse/FLINK-6198 > Project: Flink > Issue Type: Sub-task > Components: CEP > Affects Versions: 1.3.0 > Reporter: Kostas Kloudas > Assignee: Kostas Kloudas > Priority: Critical > Fix For: 1.3.0 > > > New features to include: > * Iterative Functions > * Quantifiers > * Time handling > * Migration from FilterFunction to IterativeCondition -- This message was sent by Atlassian JIRA (v6.3.15#6346)