114115116117118119120121
final String[] terms = tfs.keys(new String[0]); Arrays.sort(terms); for (String t : terms) { lexiconStream.writeNextEntry(t, new BlockLexiconEntry(TermCodes.getCode(t), nts.get(t), tfs.get(t), zerob, zerol, zerob, blockFreqs.get(t))); } }