[ 
https://issues.apache.org/jira/browse/HAMA-558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13281482#comment-13281482
 ] 

Edward J. Yoon commented on HAMA-558:
-------------------------------------

There's a bug. I'm fixing directly.

{code}

Index: src/main/java/org/apache/hama/graph/VertexWritable.java
===================================================================
--- src/main/java/org/apache/hama/graph/VertexWritable.java     (revision 
1341804)
+++ src/main/java/org/apache/hama/graph/VertexWritable.java     (working copy)
@@ -144,8 +144,8 @@
   @Override
   public int compareTo(VertexWritable<VERTEX_ID, VERTEX_VALUE> o) {
     VertexWritable<VERTEX_ID, VERTEX_VALUE> that = o;
-    return ((Comparable<VertexWritable<VERTEX_ID, VERTEX_VALUE>>) 
this.vertexId)
-        .compareTo((VertexWritable<VERTEX_ID, VERTEX_VALUE>) that.vertexId);
+    return ((Comparable<VERTEX_ID>) this.vertexId)
+        .compareTo((VERTEX_ID) that.vertexId);
   }
 
   @Override
{code}
                
> Add graph generators from our benchmark section
> -----------------------------------------------
>
>                 Key: HAMA-558
>                 URL: https://issues.apache.org/jira/browse/HAMA-558
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp core, examples, graph
>            Reporter: Thomas Jungblut
>            Assignee: Thomas Jungblut
>         Attachments: HAMA-558.patch, HAMA-558_2.patch
>
>
> In our graph algorithm benchmarks we used an MR based graph generator: 
> http://wiki.apache.org/hama/Benchmarks#Single_Shortest_Path_Problem
> I have translated it to the new API and made a patch for it.
> So people can reproduce the results, create sample graphs and don't have to 
> compile the stuff from a java file.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to