Abstract API that consumes terms, doc, freq, prox, offset and payloads postings. Concrete implementations of this actually do "something" with the postings (write it into the index in a specific format).
close()merge(org.apache.lucene.index.MergeState mergeState, org.apache.lucene.codecs.NormsProducer norms)Merges in the fields from the readers in mergeState. The default implementation
skips and maps around deleted documents, and calls #write(Fields,NormsProducer).
Implementations can override this method for more sophisticated merging (bulk-byte copying,
etc).
write(org.apache.lucene.index.Fields fields, org.apache.lucene.codecs.NormsProducer norms)Write all fields, terms and postings. This the "pull" API, allowing you to iterate more than once over the postings, somewhat analogous to using a DOM API to traverse an XML tree.
Notes: