Hi Nicholas,

I understand that a Rule contains more than the Pattern. Still, I favor
DynamicPattern[Holder] over Rule, because the term "Rule" does not exist in
Flink's CEP implementation so far and "dynamic" seems to be the important
bit here.

Cheers,

Konstantin

On Tue, Dec 14, 2021 at 4:46 AM Nicholas Jiang <nicholasji...@apache.org>
wrote:

> Hi DianFu,
>
>      Thanks for your feedback of the FLIP.
>
>      About the mentioned question for the `getLatestRules`, IMO, this
> doesn't need to rename into `getRuleChanges` because this method is used
> for getting the total amount of the latest rules which has been updated
> once.
>
>      About the CEP.rule method, the CEP.dynamicPattern renaming is
> confusing for users. The dynamic pattern only creates the PatternStream not
> the DataStream. From the concept, a dynamic pattern is also a pattern, not
> contains the PatternProcessFunction. If renaming the CEP.rule into
> CEP.dynamicPattern, the return value of the method couldn't include the
> PatternProcessFunction, only returns the PatternStream. I think the
> difference between the Rule and the Pattern is that Rule contains the
> PatternProcessFunction, but the Pattern or DynamicPattern doesn't contain
> the function.
>
> Best
> Nicholas Jiang
>


-- 

Konstantin Knauf

https://twitter.com/snntrable

https://github.com/knaufk

Reply via email to