Package org.apache.lucene.codecs
Class TermStats
- java.lang.Object
-
- org.apache.lucene.codecs.TermStats
-
public class TermStats extends Object
Holder for per-term statistics.- See Also:
TermsEnum.docFreq(),TermsEnum.totalTermFreq()
-
-
Field Summary
Fields Modifier and Type Field Description intdocFreqHow many documents have at least one occurrence of this term.longtotalTermFreqTotal number of times this term occurs across all documents in the field.
-
Constructor Summary
Constructors Constructor Description TermStats(int docFreq, long totalTermFreq)Sole constructor.
-