/** * Process Sequentially. Reads the vectors one by one, and puts them into respective directory, named after * their clusterId. * * @param input The output path provided to the clustering algorithm, whose would be post processed. Hint : The * path of the directory containing clusters-*-final and clusteredPoints. * @param output The post processed data would be stored at this path. */ private static void postProcessSeq(Path input, Path output) throws IOException { ClusterOutputPostProcessor clusterOutputPostProcessor = new ClusterOutputPostProcessor(input, output, new Configuration()); clusterOutputPostProcessor.process(); }
/** * Process Sequentially. Reads the vectors one by one, and puts them into respective directory, named after * their clusterId. * * @param input The output path provided to the clustering algorithm, whose would be post processed. Hint : The * path of the directory containing clusters-*-final and clusteredPoints. * @param output The post processed data would be stored at this path. */ private static void postProcessSeq(Path input, Path output) throws IOException { ClusterOutputPostProcessor clusterOutputPostProcessor = new ClusterOutputPostProcessor(input, output, new Configuration()); clusterOutputPostProcessor.process(); }
/** * Process Sequentially. Reads the vectors one by one, and puts them into respective directory, named after * their clusterId. * * @param input The output path provided to the clustering algorithm, whose would be post processed. Hint : The * path of the directory containing clusters-*-final and clusteredPoints. * @param output The post processed data would be stored at this path. */ private static void postProcessSeq(Path input, Path output) throws IOException { ClusterOutputPostProcessor clusterOutputPostProcessor = new ClusterOutputPostProcessor(input, output, new Configuration()); clusterOutputPostProcessor.process(); }
private Map<String,Path> ouputPostProcessing(Configuration conf) throws IOException { ClusterOutputPostProcessor clusterOutputPostProcessor = new ClusterOutputPostProcessor(outputPath, outputPath, conf); clusterOutputPostProcessor.process(); return clusterOutputPostProcessor.getPostProcessedClusterDirectories(); }