summaryrefslogtreecommitdiff
path: root/src/mining
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-05-01 23:56:00 +0200
committerPeter Wu <peter@lekensteyn.nl>2014-05-01 23:56:00 +0200
commitd68b9ac03cf2dbaf55d1e848c9df0a4b5957fc4e (patch)
treecbb2f932f4924b2ec9c8284f34c61bf4dc623e60 /src/mining
parentcb296b188093df4480cb720d3b5f4ab425ac6ec9 (diff)
downloadTwitterDataAnalytics-d68b9ac03cf2dbaf55d1e848c9df0a4b5957fc4e.tar.gz
Add command to print active keywords
Diffstat (limited to 'src/mining')
-rw-r--r--src/mining/Stream.java10
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);
}