hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tjungb...@apache.org
Subject svn commit: r1448530 - in /hama/trunk/examples/src: main/java/org/apache/hama/examples/util/FastGraphGen.java test/java/org/apache/hama/examples/SSSPTest.java
Date Thu, 21 Feb 2013 07:16:03 GMT
Author: tjungblut
Date: Thu Feb 21 07:16:02 2013
New Revision: 1448530

URL: http://svn.apache.org/r1448530
Log:
improve naming a bit

Modified:
    hama/trunk/examples/src/main/java/org/apache/hama/examples/util/FastGraphGen.java
    hama/trunk/examples/src/test/java/org/apache/hama/examples/SSSPTest.java

Modified: hama/trunk/examples/src/main/java/org/apache/hama/examples/util/FastGraphGen.java
URL: http://svn.apache.org/viewvc/hama/trunk/examples/src/main/java/org/apache/hama/examples/util/FastGraphGen.java?rev=1448530&r1=1448529&r2=1448530&view=diff
==============================================================================
--- hama/trunk/examples/src/main/java/org/apache/hama/examples/util/FastGraphGen.java (original)
+++ hama/trunk/examples/src/main/java/org/apache/hama/examples/util/FastGraphGen.java Thu
Feb 21 07:16:02 2013
@@ -36,7 +36,6 @@ import org.apache.hama.bsp.NullInputForm
 import org.apache.hama.bsp.SequenceFileOutputFormat;
 import org.apache.hama.bsp.TextArrayWritable;
 import org.apache.hama.bsp.sync.SyncException;
-import org.apache.hama.examples.CombineExample;
 
 import com.google.common.collect.Sets;
 
@@ -46,7 +45,7 @@ public class FastGraphGen {
   private static String SIZE_OF_MATRIX = "size.of.matrix";
   private static String MAX_EDGES = "max.outlinks";
 
-  public static class SymmetricMatrixGenBSP extends
+  public static class FastGraphGenBSP extends
       BSP<NullWritable, NullWritable, Text, TextArrayWritable, Text> {
 
     private Configuration conf;
@@ -107,10 +106,10 @@ public class FastGraphGen {
     conf.setInt(SIZE_OF_MATRIX, Integer.parseInt(args[0]));
     conf.setInt(MAX_EDGES, Integer.parseInt(args[1]));
 
-    BSPJob bsp = new BSPJob(conf, CombineExample.class);
+    BSPJob bsp = new BSPJob(conf, FastGraphGenBSP.class);
     // Set the job name
     bsp.setJobName("Random Fast Matrix Generator");
-    bsp.setBspClass(SymmetricMatrixGenBSP.class);
+    bsp.setBspClass(FastGraphGenBSP.class);
     bsp.setInputFormat(NullInputFormat.class);
     bsp.setOutputKeyClass(Text.class);
     bsp.setOutputValueClass(TextArrayWritable.class);

Modified: hama/trunk/examples/src/test/java/org/apache/hama/examples/SSSPTest.java
URL: http://svn.apache.org/viewvc/hama/trunk/examples/src/test/java/org/apache/hama/examples/SSSPTest.java?rev=1448530&r1=1448529&r2=1448530&view=diff
==============================================================================
--- hama/trunk/examples/src/test/java/org/apache/hama/examples/SSSPTest.java (original)
+++ hama/trunk/examples/src/test/java/org/apache/hama/examples/SSSPTest.java Thu Feb 21 07:16:02
2013
@@ -86,7 +86,7 @@ public class SSSPTest extends TestCase {
       String line = null;
       while ((line = reader.readLine()) != null) {
         String[] split = line.split("\t");
-        System.out.println(split[1] + " = " + (int) rs.get(split[0]));
+        System.out.println(split[1] + " = " + rs.get(split[0]));
         assertEquals(Integer.parseInt(split[1]), (int) rs.get(split[0]));
       }
     }



Mime
View raw message