Lucene90CompressingTermVectorsWriter
Properties
Functions
Adds a term position and offsets
Called before .close, passing in the number of documents that were written. Note that this is intentionally redundant (equivalent to the number of calls to .startDocument, but a Codec should check that this is the case to detect the JRE bug described in LUCENE-1282.
Called after a doc and all its fields have been added.
Called after a field and all its terms have been added.
Called after a term and all its positions have been added.
Merges in the term vectors from the readers in mergeState. The default implementation skips over deleted documents, and uses .startDocument, .startField, .startTerm, .addPosition, and .finish, returning the number of documents that were written. Implementations can override this method for more sophisticated merging (bulk-byte copying, etc).
Return the memory usage of this object in bytes. Negative values are illegal.
Called before writing the term vectors of the document. .startField will be called numVectorFields times. Note that if term vectors are enabled, this is called even if the document has no vector fields, in this case numVectorFields will be zero.
Returns true if we should recompress this reader, even though we could bulk merge compressed data