In Lucene80DocValuesConsumer, we use `addTermsDict()` to create the first index level, and use `writeTermsIndex()` to create the second index level, terms dict needs to be traversed in each function, which will be very costly. We can obtain the two index levels only by traversing once.
If we could reduce one traversal?
If we could reduce one traversal?