hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r720734 - /incubator/hama/trunk/src/java/org/apache/hama/DenseMatrix.java
Date Wed, 26 Nov 2008 04:10:37 GMT
Author: edwardyoon
Date: Tue Nov 25 20:10:37 2008
New Revision: 720734

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

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

Modified: incubator/hama/trunk/src/java/org/apache/hama/DenseMatrix.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/DenseMatrix.java?rev=720734&r1=720733&r2=720734&view=diff
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/DenseMatrix.java (original)
+++ incubator/hama/trunk/src/java/org/apache/hama/DenseMatrix.java Tue Nov 25 20:10:37 2008
@@ -398,21 +398,21 @@
   public void blocking_mapred(int blockNum) throws IOException {
     setBlockPosition(blockNum);
     setBlockSize(blockNum);
-    
+
     JobConf jobConf = new JobConf(config);
     jobConf.setJobName("Blocking MR job" + getPath());
-  
+
     jobConf.setNumMapTasks(config.getNumMapTasks());
     jobConf.setNumReduceTasks(config.getNumReduceTasks());
-    
+
     BlockingMapRed.initJob(getPath(), jobConf);
-    
+
     JobManager.execute(jobConf);
   }
 
   public boolean isBlocked() throws IOException {
-    return (table.get(Constants.METADATA, Constants.BLOCK_SIZE) == null) ? 
-        false : true;
+    return (table.get(Constants.METADATA, Constants.BLOCK_SIZE) == null) ? false
+        : true;
   }
 
   public SubMatrix getBlock(int i, int j) throws IOException {
@@ -479,9 +479,10 @@
   protected String getBlockKey(int i, int j) {
     return i + "," + j;
   }
-  
+
   /**
-   * Using a scanner to block a dense matrix.
+   * Using a scanner to block a dense matrix. If the matrix is large, use the
+   * blocking_mapred()
    * 
    * @param blockNum
    * @throws IOException



Mime
View raw message