tokenCountersFile.close();
logger.info("Closing categoryTokenCount.... done");
logger.info("Sorting categoryTokenCount....");
File beforeSort= new File(CAT_TOK_FILE_UNSORTED);
File afterSort= new File(CAT_TOK_FILE_SORTED);
TokenCounterPersistence tcp= new TokenCounterPersistence();
MergeSort.sort(beforeSort, afterSort, tcp, null);
logger.info("Sorting categoryTokenCount.... done");
logger.info("Folding categoryTokenCount.... ");
// Now saves all this data to a FileCache
RecordReader tcrr= tcp.newRecordReader(afterSort);
TokenCounter catTc= new TokenCounter();
TokenCounter nonCatTc= new TokenCounter();
TokenCounterPersistence.TCRecord tcr= (TokenCounterPersistence.TCRecord) tcrr.readRecord();
if (null==tcrr) return;
catTc.update(tcr.getCatVal());