incubator-hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r683802 - /incubator/hama/trunk/src/java/org/apache/hama/Vector.java
Date Fri, 08 Aug 2008 02:31:47 GMT
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
 



Mime
View raw message