java - Creating and Selecting from a Named Window -
i have esper running locally , feeding in (via xml) handful of epl statements -
<?xml version="1.0" encoding="utf-8"?> <statements> <statement> create window ordereventwindow.win:keepall() select * orderevent </statement> <statement> @name("ordereventsfromwindow") @description("outputs order events window") select * ordereventwindow </statement> <statement> @name("ordereventsfromdirect") @description("outputs order events feed") select * orderevent </statement> </statements>
this appears go in fine without errors. however, issue appears though above statement called "ordereventsfromwindow" not running see no results being output (despite events of type orderevent coming in).
what strange other statement "ordereventsfromdirect" working expected.
any idea might doing wrong explain why first statement not showing output?
*note statements in xml being fed in on application start follows:
(string stmt : statements) { epstatement statement = admin.createepl(stmt); statement.addlistener(this); }
named windows start empty , "create window ordereventwindow.win:keepall() orderevent" defines type of rows in named window, in case same row type orderevent. you'd want insert order events named window using "insert ordereventwindow select * orderevent" if want insert.
Comments
Post a Comment