diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-06-11 13:36:41 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-06-11 13:36:41 +0200 |
commit | 36055c51726264c43110c2225ba9bdc2fdcce5f2 (patch) | |
tree | 0f939a4f1516a0bf467a57d7b6cf267a14abcb69 /src/database | |
parent | 072c59d7dc3389e84f715ac46033ab43a4971db6 (diff) | |
download | Goldfarmer-36055c51726264c43110c2225ba9bdc2fdcce5f2.tar.gz |
More numbers for estimating duration
Diffstat (limited to 'src/database')
-rw-r--r-- | src/database/BrandAnalyzerQueue.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/database/BrandAnalyzerQueue.java b/src/database/BrandAnalyzerQueue.java index 21d0290..f6b0a40 100644 --- a/src/database/BrandAnalyzerQueue.java +++ b/src/database/BrandAnalyzerQueue.java @@ -49,6 +49,7 @@ public class BrandAnalyzerQueue implements Runnable { } private void fillQueue() throws SQLException, InterruptedException { + int count = 0; while (data.next()) { List<String> brands = checker.getBrands(data.getString("text")); // if there is no brand, add a dummy so we know it got checked @@ -58,7 +59,10 @@ public class BrandAnalyzerQueue implements Runnable { long tweetid = data.getLong("tweetid"); Result result = new Result(tweetid, brands); queue.put(result); + ++count; } + getLogger().log(Level.INFO, "Finished with queuing " + count + + " analyses of tweets"); } public Result next() { |