Hi Sachin,

The javadoc has a good explanation that you can refer to:
https://kafka.apache.org/24/javadoc/index.html?org/apache/kafka/streams/state/ReadOnlyWindowStore.html

As in our example, both these two would be returned.


Guozhang

On Tue, Feb 18, 2020 at 6:56 AM Sachin Mittal <sjmit...@gmail.com> wrote:

> Hi,
> Say I want to fetch all the keys for
>
> store.fetchAll(8, 12)
>
>  +-------------------------------+
>  |  key  | start time | end time |
>  +-------+------------+----------+
>  |   A   |     10     |    20    |
>  +-------+------------+----------+
>  |   A   |     15     |    25    |
>  +-------+------------+----------+
>  |   A   |     20     |    30    |
>  +-------+------------+----------+
>  |   A   |     25     |    35    |
>  +--------------------------------
>  |   B   |     10     |    20    |
>  +-------+------------+----------+
>  |   B   |     15     |    25    |
>  +-------+------------+----------+
>  |   B   |     20     |    30    |
>  +-------+------------+----------+
>  |   B   |     25     |    35    |
>
> Would it fetch two windows ie (A, 10, 20) and (B, 10, 20) or it won't
> fetch any window.
>
> Thanks
> Sachin
>


-- 
-- Guozhang

Reply via email to