GitHub user bowenli86 opened a pull request: https://github.com/apache/flink/pull/5356
[FLINK-8364][state backend] Add iterator() to ListState which returns empty iterator when it has no value ## What is the purpose of the change Add iterator() to ListState which returns empty iterator when it has no value ## Brief change log Add iterator() to ListState which returns empty iterator when it has no value ## Verifying this change This change added tests and can be verified by extending `StateBackendTestBase#testListStateAPIs()` ## Does this pull request potentially affect one of the following parts: - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (yes) ## Documentation - Does this pull request introduce a new feature? (yes) - If yes, how is the feature documented? (docs / JavaDocs) You can merge this pull request into a Git repository by running: $ git pull https://github.com/bowenli86/flink FLINK-8364 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/5356.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #5356 ---- commit fe3ae4e4798fb3f1a440dee737298718143edaf3 Author: Bowen Li <bowenli86@...> Date: 2018-01-25T07:01:46Z [FLINK-8364] Add iterator() to ListState which returns empty iterator when it has no value commit c6a3e6bdb276b910e679bfa12a1abadaf2c9fcf8 Author: Bowen Li <bowenli86@...> Date: 2018-01-25T07:41:46Z add doc and unit test ---- ---