Hi, A ReadOnlyKeyValueStore,
https://github.com/apache/kafka/blob/0.10.1/streams/src/main/java/org/apache/kafka/streams/state/ReadOnlyKeyValueStore.java, allows you to get all keys in the store and then iterate over them. However, the ReadOnlyWindowStore,
https://github.com/apache/kafka/blob/0.10.1/streams/src/main/java/org/apache/kafka/streams/state/ReadOnlyWindowStore.java, does not appear to support querying all the keys over a time range. The key is required in the "fetch" method.
My use case is that in different windows the number of keys might vary. For example, in a monitoring application in time window 1, there might be one node, and then in time window 2, there could be two nodes, and the keys would be used to track metrics for each node. The nodes are elastic and will dynamically be added or removed over time. What I was hoping to do is similar to the KeyValueStore, just get all the keys, which would correspond to nodes, for a window. I understand that a single key in a WindowStore could have multiple windows. In my case I would like to get all the unique keys for a single window or alternatively the list of unique keys for each window that is between the specified time range in the fetch method.
Currently, it looks like I might have to track the keys/nodes separately. I was just wondering if there was a simpler way for my use case or if I was missing something or misinterpreting/misusing the API.
Regards --Roland