private static void invertIndex(File indexFile, File invertFile) { IndexAggregator aggr = new SortedInvertedIndexAggregator(); System.out.print(" Inverted index construction... (" + invertFile.getName() + ")"); aggr.run(indexFile, invertFile); }
private static void aggregateIndex(File indexFile, File aggregateFile) { IndexAggregator aggr = new SortedCountAggregator(); System.out.print(" Aggregating frequencies... (" + aggregateFile.getName() + ")"); aggr.run(indexFile, aggregateFile); }