Esempio n. 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);
 }
Esempio n. 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);
 }