[DISCUSS] How to enable dynamic pattern ?
JasonChoi27 opened this issue · comments
hi, haoch
I don't want to reload flink driver when add a new pattern or change one.
Here is my way:
extend AbstractSiddhiOperator with implementing TwoInputStreamOperator, while one input accepts pattern stream and the other processes event. When receiving new pattern, reload SiddhiAppRuntime with new executionPlan.
Does it work for my case? Or is there a better way to enable dynamic pattern?
MetadataControlEvent?
ok, i have found the way.
DataStream<Row> output = SiddhiCEP
.define(...)
.cql(DataStream<ControlEvent> controlStream)
.return(...);
Yes, you could useControlEvent
to broadcast to all operator as the interface for managing runtime dynamically.
Hi @shiveshsky,
Do you still have a problem? I am unable to check your comment on github.
Hao Chen
…On Wed, Feb 27, 2019 at 2:31 PM shiveshsky ***@***.***> wrote:
I have imported flink-siddhi jar but I am not able to import the
ControlEvent class as a type for my stream.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABOSOQvxAwE06VEkLTHrTBartweUYZtVks5vRiY9gaJpZM4V_J6a>
.