On Fri, Jul 25, 2014 at 10:56 AM, Sachini Jayasekara <[email protected]>
wrote:

> Hi all,
>
> I have started working on the $subject.
>
> In current Siddhi implementation, for a partition query execution will be
> carried  out for each partition key separately and results will be directed
> to a single stream. Ones the results of the partition query is sent to the
> output stream there is no way to identify from which partition key the
> event was generated and carry out operations to events generated by each
> partition key separately.
>
> To overcome that we are introducing inner streams. Inner streams reside
> inside a partition and they are only visible to the queries in that
> partition. Inner stream allows carrying out same operation to results of
> each partition key separately. If an inner stream is used as the output
> stream of a query inside a partition, then events generated by each
> partition key will be directed to a different stream with same stream
> definition.
>
> As shown in the diagram for query1, stream A will get partitioned based on
> a partition key and operations are carried out separately for each
> partition key. Using an inner stream we can further carryout operations to
> results of each partition key individually. Queries outside the partition
> will not have any knowledge about stream B as it is an inner stream.
>
>
> ​
>

+1 for the approach

In the Siddhi Query syntax we are thing of calling inner-stream B as "#B"

Regards
Suho


> Thanks
>
>
> --
>
>
>
> *Thanks & Regards, Sachini JayasekaraSoftware Engineer; **WSO2 Inc. *
>
> *lean . enterprise . middleware |  http://wso2.com <http://wso2.com> *
>



-- 

*S. Suhothayan*
Technical Lead & Team Lead of WSO2 Complex Event Processor
 *WSO2 Inc. *http://wso2.com
* <http://wso2.com/>*
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
<http://suhothayan.blogspot.com/>twitter: http://twitter.com/suhothayan
<http://twitter.com/suhothayan> | linked-in:
http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>*
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to