You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hama.apache.org by ed...@apache.org on 2008/08/21 12:05:16 UTC

svn commit: r687678 - in /incubator/hama/trunk: CHANGES.txt src/java/org/apache/hama/io/VectorWritable.java src/test/org/apache/hama/TestVector.java

Author: edwardyoon
Date: Thu Aug 21 03:05:15 2008
New Revision: 687678

URL: http://svn.apache.org/viewvc?rev=687678&view=rev
Log: (empty)

Modified:
    incubator/hama/trunk/CHANGES.txt
    incubator/hama/trunk/src/java/org/apache/hama/io/VectorWritable.java
    incubator/hama/trunk/src/test/org/apache/hama/TestVector.java

Modified: incubator/hama/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/CHANGES.txt?rev=687678&r1=687677&r2=687678&view=diff
==============================================================================
--- incubator/hama/trunk/CHANGES.txt (original)
+++ incubator/hama/trunk/CHANGES.txt Thu Aug 21 03:05:15 2008
@@ -4,6 +4,7 @@
 
   NEW FEATURES
     
+    HAMA-34: Hudson/Jira Intergration (edward yoon)
     HAMA-36: Add svn information to website (edward yoon)
     HAMA-33: Add set() method (edwardyoon)
     HAMA-30: Add scaling method to Vector (edwardyoon)

Modified: incubator/hama/trunk/src/java/org/apache/hama/io/VectorWritable.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/io/VectorWritable.java?rev=687678&r1=687677&r2=687678&view=diff
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/io/VectorWritable.java (original)
+++ incubator/hama/trunk/src/java/org/apache/hama/io/VectorWritable.java Thu Aug 21 03:05:15 2008
@@ -37,11 +37,9 @@
 import org.apache.hadoop.io.Writable;
 import org.apache.hama.AbstractBase;
 import org.apache.hama.Vector;
-import org.apache.log4j.Logger;
 
-public class VectorWritable extends AbstractBase implements Writable, Map<byte[], Cell> {
-
-  private static final Logger LOG = Logger.getLogger(VectorWritable.class);
+public class VectorWritable extends AbstractBase implements Writable,
+    Map<byte[], Cell> {
 
   public byte[] row;
   public HbaseMapWritable<byte[], Cell> cells;
@@ -172,10 +170,10 @@
   }
 
   /**
-   *
+   * 
    * The inner class for an entry of row.
-   *
-   **/
+   * 
+   */
   public class Entries implements Map.Entry<byte[], Cell> {
 
     private final byte[] column;

Modified: incubator/hama/trunk/src/test/org/apache/hama/TestVector.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/test/org/apache/hama/TestVector.java?rev=687678&r1=687677&r2=687678&view=diff
==============================================================================
--- incubator/hama/trunk/src/test/org/apache/hama/TestVector.java (original)
+++ incubator/hama/trunk/src/test/org/apache/hama/TestVector.java Thu Aug 21 03:05:15 2008
@@ -46,6 +46,12 @@
     scalingTest(v2);
   }
 
+  /**
+   * Test |a| dot |b|
+   * 
+   * @param v1
+   * @param v2
+   */
   private void dotTest(Vector v1, Vector v2) {
     double cos = v1.dot(v2);
     assertEquals(cos, cosine);