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

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


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


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

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

TOP

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

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.