GitHub user bowenli86 opened a pull request:
https://github.com/apache/flink/pull/6130
[FLINK-9545] Support read a file multiple times in Flink DataStream
## What is the purpose of the change
we need `StreamExecutionEnvironment.readFile/readTextFile` to read each
file for N times, but currently it only supports reading file once.
add support for the feature.
## Brief change log
- add a new processing mode as PROCESSING_N_TIMES
- add additional parameter numTimes for
StreamExecutionEnvironment.readFile/readTextFile
## Verifying this change
This change is already covered by existing tests, such as *(please describe
tests)*.
## 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-9545
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/6130.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 #6130
----
commit d51fd25ca0ff8e38aaf84d2076c9c979cd136c9d
Author: Bowen Li <bowenli86@...>
Date: 2018-06-07T00:12:59Z
[FLINK-9545] Support read a file multiple times in Flink DataStream
----
---