incubator-hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r691714 - /incubator/hama/trunk/src/java/org/apache/hama/DenseVector.java
Date Wed, 03 Sep 2008 18:23:01 GMT
Author: edwardyoon
Date: Wed Sep  3 11:23:01 2008
New Revision: 691714

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

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

Modified: incubator/hama/trunk/src/java/org/apache/hama/DenseVector.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/DenseVector.java?rev=691714&r1=691713&r2=691714&view=diff
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/DenseVector.java (original)
+++ incubator/hama/trunk/src/java/org/apache/hama/DenseVector.java Wed Sep  3 11:23:01 2008
@@ -49,8 +49,8 @@
     this.entries = new VectorMapWritable<Integer, VectorEntry>();
     this.row = row;
     for (Map.Entry<byte[], Cell> f : rowResult.entrySet()) {
-      this.entries.put(Numeric.getColumnIndex(f.getKey()), new VectorEntry(f
-          .getValue()));
+      VectorEntry entry = new VectorEntry(f.getValue());
+      this.entries.put(Numeric.getColumnIndex(f.getKey()), entry);
     }
   }
 
@@ -62,7 +62,7 @@
     return key;
   }
 
-  public VectorMapWritable<Integer, VectorEntry> getCells() {
+  public VectorMapWritable<Integer, VectorEntry> getEntries() {
     return entries;
   }
 
@@ -141,7 +141,7 @@
 
   public DenseVector set(Vector v) {
     return new DenseVector(((DenseVector) v).getRow(), ((DenseVector) v)
-        .getCells());
+        .getEntries());
   }
 
   public double getNorm1() {



Mime
View raw message