Github user uce commented on the pull request:
https://github.com/apache/flink/pull/2051#issuecomment-222554801
Hey Gyula!
The `QueryableStateStream` is only for convenience. It's just a creating a
`AbstractQueryableStateOperator`, which takes care of setting up an operator,
which consumes data and calls the `state.update()` or `state.add()` method
respectively.
You can use the `QueryableStateClient` anywhere you like, including your
map operator. Just be aware that further Threads will be started for the
network communication (configurable). You can share it between operators though.
You can make any `KvState` queryable by calling the `setQueryable(String)`
method of its state descriptor.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---