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