コード例 #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);
 }