storm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ptgo...@apache.org
Subject [07/50] [abbrv] git commit: RankableObjectWithFields implements Serializable to fix NotSerializableException errors
Date Thu, 20 Mar 2014 21:22:30 GMT
RankableObjectWithFields implements Serializable to fix NotSerializableException errors


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

Branch: refs/heads/master
Commit: 0b7acda1df88301c77f212673789a55d3c445ad2
Parents: e345091
Author: Michael G. Noll <mnoll@verisign.com>
Authored: Thu Aug 29 11:17:09 2013 +0200
Committer: Michael G. Noll <mnoll@verisign.com>
Committed: Thu Aug 29 11:19:13 2013 +0200

----------------------------------------------------------------------
 src/jvm/storm/starter/tools/RankableObjectWithFields.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-storm/blob/0b7acda1/src/jvm/storm/starter/tools/RankableObjectWithFields.java
----------------------------------------------------------------------
diff --git a/src/jvm/storm/starter/tools/RankableObjectWithFields.java b/src/jvm/storm/starter/tools/RankableObjectWithFields.java
index 4d571f2..38db6e9 100644
--- a/src/jvm/storm/starter/tools/RankableObjectWithFields.java
+++ b/src/jvm/storm/starter/tools/RankableObjectWithFields.java
@@ -1,5 +1,6 @@
 package storm.starter.tools;
 
+import java.io.Serializable;
 import java.util.List;
 
 import backtype.storm.tuple.Tuple;
@@ -13,8 +14,9 @@ import com.google.common.collect.Lists;
  * This class can be used, for instance, to track the number of occurrences of an object
in a Storm topology.
  * 
  */
-public class RankableObjectWithFields implements Rankable {
+public class RankableObjectWithFields implements Rankable, Serializable {
 
+    private static final long serialVersionUID = -9102878650001058090L;
     private static final String toStringSeparator = "|";
 
     private final Object obj;


Mime
View raw message