[ 
https://issues.apache.org/jira/browse/STORM-676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15193154#comment-15193154
 ] 

ASF GitHub Bot commented on STORM-676:
--------------------------------------

Github user arunmahadevan commented on a diff in the pull request:

    https://github.com/apache/storm/pull/1072#discussion_r55989920
  
    --- Diff: storm-core/src/jvm/org/apache/storm/trident/Stream.java ---
    @@ -565,19 +578,169 @@ public Stream aggregate(Fields inputFields, 
ReducerAggregator agg, Fields functi
                     .aggregate(inputFields, agg, functionFields)
                     .chainEnd();
         }
    -    
    +
    +    /**
    +     * Returns a stream of tuples which are aggregated results of a 
tumbling window with every {@code windowCount} of tuples.
    +     *
    +     * @param windowCount represents window tuples count
    +     * @param inputFields projected fields for aggregator
    +     * @param aggregator aggregator to run on the window of tuples to 
compute the result and emit to the stream.
    +     * @param functionFields fields of values to emit with aggregation.
    +     *
    +     * @return
    +     */
    +    public Stream tumblingCountWindow(int windowCount, Fields inputFields, 
Aggregator aggregator, Fields functionFields) {
    --- End diff --
    
    The various windowing configurations can be expressed with the 
`window(WindowConfig windowConfig,...)`. If we are adding wrappers over it, can 
you please maintain compatibility with the core apis ?
    
    i.e,
    ```java
    tumblingWindow(Count count)
    tumblingWindow(Duration duration)
    window(Count windowLength, Count slidingInterval)
    window(Duration windowLength, Duration slidingInterval)
    ```


> Storm Trident support for sliding/tumbling windows
> --------------------------------------------------
>
>                 Key: STORM-676
>                 URL: https://issues.apache.org/jira/browse/STORM-676
>             Project: Apache Storm
>          Issue Type: Improvement
>          Components: storm-core
>            Reporter: Sriharsha Chintalapani
>            Assignee: Satish Duggana
>             Fix For: 1.0.0, 2.0.0
>
>         Attachments: StormTrident_windowing_support-676.pdf
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to