Skip to content

Commit

Permalink
RankableObjectWithFields implements Serializable to fix NotSerializab…
Browse files Browse the repository at this point in the history
…leException errors
  • Loading branch information
Michael G. Noll committed Aug 29, 2013
1 parent e345091 commit 0b7acda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/jvm/storm/starter/tools/RankableObjectWithFields.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package storm.starter.tools;

import java.io.Serializable;
import java.util.List;

import backtype.storm.tuple.Tuple;
Expand All @@ -13,8 +14,9 @@
* 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;
Expand Down

0 comments on commit 0b7acda

Please sign in to comment.