Package tweetoscope

Class HashtagExtractor

java.lang.Object
tweetoscope.HashtagExtractor
All Implemented Interfaces:
Flow.Publisher<String>, Flow.Subscriber<com.twitter.clientlib.model.Tweet>

public class HashtagExtractor extends Object implements Flow.Subscriber<com.twitter.clientlib.model.Tweet>, Flow.Publisher<String>
Reacts to the reception of a new Tweet by parsing its text to look for hashtags. For each hashtag found, if any, notifies its subscribers. Tweets are received from the upstream component
invalid reference
distributed_tweetoscope.tweetsFilter.TweetFilter
via Java Flow. Hashtags are passed downstream to the
invalid reference
distributed_tweetoscope.HashtagCounter
via Java Flow.
Author:
Virginie Galtier
  • Field Details

    • subscribers

      protected List<Flow.Subscriber<? super String>> subscribers
      List of objects to notify when a hashtag is extracted (downstream component = HashtagCounter)
  • Constructor Details

    • HashtagExtractor

      public HashtagExtractor()
  • Method Details