public final class ClusterCountReader extends Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.IOExceptionpublic 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.IOExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.