Package org.apache.flink.streaming.connectors.twitter

Examples of org.apache.flink.streaming.connectors.twitter.TwitterSource


  private static DataStream<String> getTextDataStream(
      StreamExecutionEnvironment env) {
    if (fromFile) {
      // read the text file from given input path
      return env.addSource(new TwitterSource(path));
    } else {
      // get default test text data
      return env.fromElements(TwitterStreamData.TEXTS);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.flink.streaming.connectors.twitter.TwitterSource

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.