{
final String[] terms = tfs.keys(new String[0]);
Arrays.sort(terms);
for (String t : terms)
{
BlockFieldLexiconEntry fle = new BlockFieldLexiconEntry(getFieldFrequency(t), blockFreqs.get(t));
fle.setOffset((long)0, (byte)0);
fle.setTermId(TermCodes.getCode(t));
fle.setStatistics(nts.get(t), tfs.get(t));
lexiconStream.writeNextEntry(t, fle);
}
}