Search in sources :

Example 1 with TweetsGenerator

use of com.github.ashvina.common.TweetsGenerator in project streaming-samples by ashvina.

the class TweetSpout method open.

@Override
public void open(Map conf, TopologyContext context, SpoutOutputCollector collector) {
    super.open(conf, context, collector);
    this.collector = collector;
    this.tweetsGenerator = new TweetsGenerator(tweetsFilePath);
}
Also used : TweetsGenerator(com.github.ashvina.common.TweetsGenerator)

Aggregations

TweetsGenerator (com.github.ashvina.common.TweetsGenerator)1