Hi,

Just to clarify your requirement.

Do you want to get the topK (highest frequency values) [1] and then sort
the result [2] in ascending or descending order?


[1]
https://docs.wso2.com/display/SIDDHIEXTENSIONS/Extrema+Extension#ExtremaExtension-topK
[2]
https://docs.wso2.com/display/CEP420/Inbuilt+Windows#InbuiltWindows-sortsort

Thank you
Charini

On Thu, Aug 31, 2017 at 7:25 AM, 정형근 <ruri...@gmail.com> wrote:

> I have a question about siddhi query.
>
> Is there a way to sort the Top-k elements with a Siddhi query?
>
> I know about the sort window.
> I also know that this window only holds elements as large as the window
> size.
> That is, once the window size is exceeded, the elements are deleted.
> I think this is unfair because the value of data can be updated.
>
> So what I want to do is recalculate the top k rankings for every incoming
> data.
> Do you have a good idea?
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Charini Vimansha Nanayakkara*
Software Engineer at WSO2

Mobile: 0714126293
E-mail: chari...@wso2.com
Blog: http://www.charini.me/

<http://wso2.com/signature>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to