Package org.apache.flink.streaming.api.function.source

Examples of org.apache.flink.streaming.api.function.source.FileStreamFunction


   *            "file:///some/local/file" or "hdfs://host:port/file/path").
   * @return The DataStream representing the text file.
   */
  public DataStreamSource<String> readTextStream(String filePath) {
    checkIfFileExists(filePath);
    return addSource(new FileStreamFunction(filePath), 1);
  }
View Full Code Here


    return addSource(new FileStreamFunction(filePath), 1);
  }

  public DataStreamSource<String> readTextStream(String filePath, int parallelism) {
    checkIfFileExists(filePath);
    return addSource(new FileStreamFunction(filePath), parallelism);
  }
View Full Code Here

TOP

Related Classes of org.apache.flink.streaming.api.function.source.FileStreamFunction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.