|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mahout.clustering.topdown.postprocessor.ClusterCountReader
public final class ClusterCountReader
Reads the number of clusters produced by the clustering algorithm.
| Method Summary | |
|---|---|
static Map<Integer,Integer> |
getClusterIDs(org.apache.hadoop.fs.Path clusterOutputPath,
org.apache.hadoop.conf.Configuration conf,
boolean keyIsClusterId)
Generates a list of all cluster ids by reading the clusters-*-final file. |
static int |
getNumberOfClusters(org.apache.hadoop.fs.Path clusterOutputPath,
org.apache.hadoop.conf.Configuration conf)
Reads the number of clusters present by reading the clusters-*-final file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int getNumberOfClusters(org.apache.hadoop.fs.Path clusterOutputPath,
org.apache.hadoop.conf.Configuration conf)
throws IOException
clusterOutputPath - The output path provided to the clustering algorithm.conf - The hadoop configuration.
IOException
public static Map<Integer,Integer> getClusterIDs(org.apache.hadoop.fs.Path clusterOutputPath,
org.apache.hadoop.conf.Configuration conf,
boolean keyIsClusterId)
throws IOException
clusterOutputPath - The output path provided to the clustering algorithm.conf - The hadoop configuration.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||