diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-05-01 23:56:00 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-05-01 23:56:00 +0200 |
commit | d68b9ac03cf2dbaf55d1e848c9df0a4b5957fc4e (patch) | |
tree | cbb2f932f4924b2ec9c8284f34c61bf4dc623e60 /src/mining | |
parent | cb296b188093df4480cb720d3b5f4ab425ac6ec9 (diff) | |
download | TwitterDataAnalytics-d68b9ac03cf2dbaf55d1e848c9df0a4b5957fc4e.tar.gz |
Add command to print active keywords
Diffstat (limited to 'src/mining')
-rw-r--r-- | src/mining/Stream.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mining/Stream.java b/src/mining/Stream.java index 36fba1b..1822bc2 100644 --- a/src/mining/Stream.java +++ b/src/mining/Stream.java @@ -1,6 +1,7 @@ package mining; import java.io.IOException; +import java.util.Set; /** * Provides access to a stream. The implementor is supposed to provide means @@ -44,4 +45,13 @@ public interface Stream { * @return true if connection can be made, false otherwise. */ public boolean isValid(); + + /** + * Determine keywords for the search query. + * + * @param active true to return keywords actually in use, false to return + * keywords that are queued for the next iteration. + * @return A list of keywords, possibly empty if there are none. + */ + public Set<String> getKeywords(boolean active); } |