hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1347842 - /incubator/hama/trunk/examples/src/main/java/org/apache/hama/examples/InlinkCount.java
Date Fri, 08 Jun 2012 00:23:58 GMT
Author: edwardyoon
Date: Fri Jun  8 00:23:57 2012
New Revision: 1347842

URL: http://svn.apache.org/viewvc?rev=1347842&view=rev
Log:
Arguments were defined in wrong order.

Modified:
    incubator/hama/trunk/examples/src/main/java/org/apache/hama/examples/InlinkCount.java

Modified: incubator/hama/trunk/examples/src/main/java/org/apache/hama/examples/InlinkCount.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/examples/src/main/java/org/apache/hama/examples/InlinkCount.java?rev=1347842&r1=1347841&r2=1347842&view=diff
==============================================================================
--- incubator/hama/trunk/examples/src/main/java/org/apache/hama/examples/InlinkCount.java
(original)
+++ incubator/hama/trunk/examples/src/main/java/org/apache/hama/examples/InlinkCount.java
Fri Jun  8 00:23:57 2012
@@ -34,7 +34,7 @@ import org.apache.hama.graph.GraphJob;
 import org.apache.hama.graph.Vertex;
 import org.apache.hama.graph.VertexInputReader;
 
-public class InlinkCount extends Vertex<Text, IntWritable, NullWritable> {
+public class InlinkCount extends Vertex<Text, NullWritable, IntWritable> {
 
   @Override
   public void compute(Iterator<IntWritable> messages) throws IOException {
@@ -51,7 +51,7 @@ public class InlinkCount extends Vertex<
   }
 
   public static class InlinkCountTextReader extends
-      VertexInputReader<LongWritable, Text, Text, IntWritable, NullWritable> {
+      VertexInputReader<LongWritable, Text, Text, NullWritable, IntWritable> {
 
     /**
      * The text file essentially should look like: <br/>
@@ -63,7 +63,7 @@ public class InlinkCount extends Vertex<
      */
     @Override
     public boolean parseVertex(LongWritable key, Text value,
-        Vertex<Text, IntWritable, NullWritable> vertex) {
+        Vertex<Text, NullWritable, IntWritable> vertex) {
       String[] split = value.toString().split("\t");
       for (int i = 0; i < split.length; i++) {
         if (i == 0) {



Mime
View raw message