SingleTermsEnum
Subclass of FilteredTermsEnum for enumerating a single term.
For example, this can be used by MultiTermQuerys that need only visit one term, but want to preserve MultiTermQuery semantics such as MultiTermQuery.getRewriteMethod.
Functions
Returns the related attributes, the returned AttributeSource is shared with the delegate TermsEnum.
Returns the number of documents containing the current term. Do not call this when the enum is unpositioned. SeekStatus.END.
Return a ImpactsEnum.
Returns ordinal position for current term. This is an optional method (the codec may throw UnsupportedOperationException). Do not call this when the enum is unpositioned.
Get PostingsEnum for the current term, with control over whether freqs, positions, offsets or payloads are required. Do not call this when the enum is unpositioned. This method will not return null.
Get PostingsEnum for the current term. Do not call this when the enum is unpositioned. This method will not return null.
This enum does not support seeking!
This enum does not support seeking!
Returns the total number of occurrences of this term across all documents (the sum of the freq() for each doc that has this term). Note that, like other term measures, this measure does not take deleted documents into account.