mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsing...@apache.org
Subject svn commit: r1196583 - /mahout/trunk/core/src/main/java/org/apache/mahout/clustering/minhash/MinHashMapper.java
Date Wed, 02 Nov 2011 13:48:49 GMT
Author: gsingers
Date: Wed Nov  2 13:48:49 2011
New Revision: 1196583

URL: http://svn.apache.org/viewvc?rev=1196583&view=rev
Log:
minor tweak to avoid some extra string manipulation

Modified:
    mahout/trunk/core/src/main/java/org/apache/mahout/clustering/minhash/MinHashMapper.java

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/clustering/minhash/MinHashMapper.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/minhash/MinHashMapper.java?rev=1196583&r1=1196582&r2=1196583&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/clustering/minhash/MinHashMapper.java
(original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/clustering/minhash/MinHashMapper.java
Wed Nov  2 13:48:49 2011
@@ -102,6 +102,7 @@ public class MinHashMapper extends Mappe
       for (int j = 0; j < keyGroups; j++) {
         clusterIdBuilder.append(minHashValues[(i + j) % numHashFunctions]).append('-');
       }
+      //remove the last dash
       clusterIdBuilder.deleteCharAt(clusterIdBuilder.length() - 1);
       Text cluster = new Text(clusterIdBuilder.toString());
       Writable point;



Mime
View raw message