Github user aljoscha commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2020#discussion_r65209503
  
    --- Diff: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
 ---
    @@ -897,21 +900,21 @@ public TimeCharacteristic 
getStreamTimeCharacteristic() {
         *              The mode in which the source should operate, i.e. 
monitor path and react to new data, or process once and exit
         * @return The DataStream containing the given directory.
         */
    -   public DataStream<String> readFileStream(String filePath, long 
intervalMillis, WatchType watchType) {
    +   public DataStream<String> readTextFile(String filePath, ProcessingMode 
watchType, long intervalMillis) {
                Preconditions.checkNotNull(filePath, "The file path may not be 
null.");
     
                TextInputFormat format = new TextInputFormat(new 
Path(filePath));
    -           return readFile(format, filePath, watchType, intervalMillis);
    +           return readFile(format, filePath, watchType, intervalMillis, 
FilePathFilter.DefaultFilter.getInstance());
        }
     
        /**
         * Reads the given file line-by-line and creates a data stream that 
contains a string with the contents of each such
         * line. The file will be read with the system's default character set.
         *
         * <p>
    -    * <b> NOTES ON CHECKPOINTING: </b> The source (which executes the 
{@link FileSplitMonitoringFunction})
    +    * <b> NOTES ON CHECKPOINTING: </b> The source (which executes the 
{@link ContinuousFileMonitoringFunction})
    --- End diff --
    
    Same as above, and in the javadoc below.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to