Package org.apache.lucene.codecs
Class TermStats
java.lang.Object
org.apache.lucene.codecs.TermStats
Holder for per-term statistics.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
How many documents have at least one occurrence of this term.final long
Total number of times this term occurs across all documents in the field. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
docFreq
public final int docFreqHow many documents have at least one occurrence of this term. -
totalTermFreq
public final long totalTermFreqTotal number of times this term occurs across all documents in the field.
-
-
Constructor Details
-
TermStats
public TermStats(int docFreq, long totalTermFreq) Sole constructor.
-