storm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject [1/3] storm git commit: Added @Override annotation in sample code
Date Thu, 16 Jul 2015 16:29:45 GMT
Repository: storm
Updated Branches:
  refs/heads/master dc842c4df -> f62e2e99b


Added @Override annotation in sample code

Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/c1fe22ab
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/c1fe22ab
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/c1fe22ab

Branch: refs/heads/master
Commit: c1fe22abfe77a9bdc21de6d85993ae0da96a7fed
Parents: 30df970
Author: Charles Chan <charleswhchan@users.noreply.github.com>
Authored: Sun Jul 5 13:39:27 2015 -0700
Committer: Charles Chan <charleswhchan@users.noreply.github.com>
Committed: Sun Jul 5 13:39:27 2015 -0700

----------------------------------------------------------------------
 docs/documentation/Tutorial.md | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/c1fe22ab/docs/documentation/Tutorial.md
----------------------------------------------------------------------
diff --git a/docs/documentation/Tutorial.md b/docs/documentation/Tutorial.md
index 88e77b5..3d57b27 100644
--- a/docs/documentation/Tutorial.md
+++ b/docs/documentation/Tutorial.md
@@ -139,22 +139,27 @@ As you can see, the implementation is very straightforward.
 public static class ExclamationBolt implements IRichBolt {
     OutputCollector _collector;
 
+    @Override
     public void prepare(Map conf, TopologyContext context, OutputCollector collector) {
         _collector = collector;
     }
 
+    @Override
     public void execute(Tuple tuple) {
         _collector.emit(tuple, new Values(tuple.getString(0) + "!!!"));
         _collector.ack(tuple);
     }
 
+    @Override
     public void cleanup() {
     }
 
+    @Override
     public void declareOutputFields(OutputFieldsDeclarer declarer) {
         declarer.declare(new Fields("word"));
     }
     
+    @Override
     public Map getComponentConfiguration() {
         return null;
     }
@@ -179,15 +184,18 @@ Methods like `cleanup` and `getComponentConfiguration` are often not
needed in a
 public static class ExclamationBolt extends BaseRichBolt {
     OutputCollector _collector;
 
+    @Override
     public void prepare(Map conf, TopologyContext context, OutputCollector collector) {
         _collector = collector;
     }
 
+    @Override
     public void execute(Tuple tuple) {
         _collector.emit(tuple, new Values(tuple.getString(0) + "!!!"));
         _collector.ack(tuple);
     }
 
+    @Override
     public void declareOutputFields(OutputFieldsDeclarer declarer) {
         declarer.declare(new Fields("word"));
     }    
@@ -309,4 +317,4 @@ This tutorial showed how to do basic stream processing on top of Storm.
There's
 
 ## Conclusion
 
-This tutorial gave a broad overview of developing, testing, and deploying Storm topologies.
The rest of the documentation dives deeper into all the aspects of using Storm.
\ No newline at end of file
+This tutorial gave a broad overview of developing, testing, and deploying Storm topologies.
The rest of the documentation dives deeper into all the aspects of using Storm.


Mime
View raw message