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/08 04:31:47 UTC

svn commit: r683802 - /incubator/hama/trunk/src/java/org/apache/hama/Vector.java

Author: edwardyoon
Date: Thu Aug  7 19:31:47 2008
New Revision: 683802

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

Modified:
    incubator/hama/trunk/src/java/org/apache/hama/Vector.java

Modified: incubator/hama/trunk/src/java/org/apache/hama/Vector.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/Vector.java?rev=683802&r1=683801&r2=683802&view=diff
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/Vector.java (original)
+++ incubator/hama/trunk/src/java/org/apache/hama/Vector.java Thu Aug  7 19:31:47 2008
@@ -38,17 +38,13 @@
   }
 
   /**
-   * Create a RowResult from a row and Cell map
+   * Constructor a Vector
    */
   public Vector(final byte[] row, final HbaseMapWritable<byte[], Cell> m) {
     this.row = row;
     this.cells = m;
   }
 
-  public byte[] getRow() {
-    return row;
-  }
-
   public Vector(RowResult r) {
     parse(r.entrySet());
   }
@@ -57,11 +53,19 @@
     parse(r.entrySet());
   }
 
+  /**
+   * @param rowKey
+   * @param b
+   */
   public Vector(byte[] rowKey, Matrix b) {
     this.row = rowKey;
     parse(b.getRowResult(this.row).entrySet());
   }
 
+  public byte[] getRow() {
+    return row;
+  }
+  
   public void add(int index, double value) {
     // TODO Auto-generated method stub