hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1574766 - in /hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering: SemiClusterMessage.java SemiClusteringVertex.java
Date Thu, 06 Mar 2014 04:34:21 GMT
Author: edwardyoon
Date: Thu Mar  6 04:34:21 2014
New Revision: 1574766

URL: http://svn.apache.org/r1574766
Log:
Trivial commit: method renaming

Modified:
    hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering/SemiClusterMessage.java
    hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering/SemiClusteringVertex.java

Modified: hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering/SemiClusterMessage.java
URL: http://svn.apache.org/viewvc/hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering/SemiClusterMessage.java?rev=1574766&r1=1574765&r2=1574766&view=diff
==============================================================================
--- hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering/SemiClusterMessage.java
(original)
+++ hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering/SemiClusterMessage.java
Thu Mar  6 04:34:21 2014
@@ -153,7 +153,7 @@ public class SemiClusterMessage implemen
     return semiClusterContainThis;
   }
 
-  public void sortByScore(Set<SemiClusterDetails> semiClusterContainThis,
+  public void setClusters(Set<SemiClusterDetails> clusters,
       int graphJobVertexMaxClusterCount) {
     int clusterCountToBeRemoved = 0;
     NavigableSet<SemiClusterDetails> setSort = new TreeSet<SemiClusterDetails>(
@@ -166,7 +166,7 @@ public class SemiClusterMessage implemen
           }
         });
     setSort.addAll(this.semiClusterContainThis);
-    setSort.addAll(semiClusterContainThis);
+    setSort.addAll(clusters);
     clusterCountToBeRemoved = setSort.size() - graphJobVertexMaxClusterCount;
     Iterator<SemiClusterDetails> itr = setSort.descendingIterator();
     while (clusterCountToBeRemoved > 0) {

Modified: hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering/SemiClusteringVertex.java
URL: http://svn.apache.org/viewvc/hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering/SemiClusteringVertex.java?rev=1574766&r1=1574765&r2=1574766&view=diff
==============================================================================
--- hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering/SemiClusteringVertex.java
(original)
+++ hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering/SemiClusteringVertex.java
Thu Mar  6 04:34:21 2014
@@ -104,7 +104,7 @@ public class SemiClusteringVertex extend
         }
       }
 
-      value.sortByScore(clusters, graphJobVertexMaxClusterCount);
+      value.setClusters(clusters, graphJobVertexMaxClusterCount);
       this.setValue(value);
     }
   }



Mime
View raw message