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.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
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.