Hi Asok,
Siddhi query you are using is wrong. Correct query is

from topkeventstream#window.custom:topKfrequency("3","1",symbol)
select symbol
insert into topkresultstream;

Please refer [1] to learn about Siddhi query language.
When you want to send data out of the window execute
nextProcessor.process(event). It will send particular set of events to the
next execution element of the query(ex: Selector)

[1] https://docs.wso2.com/display/CEP310/Siddhi+Language+Specification

On Mon, Oct 13, 2014 at 3:59 PM, Asok Perera <[email protected]> wrote:

> Hi,
>
> I wrote a window extension for Siddhi (implementing Stremlib library)
> which suppose to be keeping most frequent K events in the window. According
> to the logs, the window in functional.
> Now I need to get the events which are *inside* the window into an output
> stream.
> Im using below siddhi query,
>
> from topkeventstream#window.custom:topKfrequency("3","1",symbol)
> insert into topkresultstream symbol
>
> , this gives me following error
> line 2:29 extraneous input 'symbol' expecting EOF
>
> Does someone has any idea on this ?
>
> BR
>
> *Asok Aravinda Perera*
> Software Engineer
> WSO2, Inc.;http://wso2.com/
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
> lean.enterprise.middleware
>
> Mobile: +94722241032
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tishan Dahanayakage
Software Engineer
WSO2, Inc.
Mobile:+94 716481328

Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
re-transmit, disseminate, or otherwise use the information contained in
this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to