Package org.apache.lucene.search
Class TermStatistics
- java.lang.Object
-
- org.apache.lucene.search.TermStatistics
-
public class TermStatistics extends java.lang.ObjectContains statistics for a specific term
-
-
Constructor Summary
Constructors Constructor Description TermStatistics(BytesRef term, long docFreq, long totalTermFreq)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longdocFreq()returns the number of documents this term occurs inBytesRefterm()returns the term textlongtotalTermFreq()returns the total number of occurrences of this term
-
-
-
Constructor Detail
-
TermStatistics
public TermStatistics(BytesRef term, long docFreq, long totalTermFreq)
-
-
Method Detail
-
term
public final BytesRef term()
returns the term text
-
docFreq
public final long docFreq()
returns the number of documents this term occurs in- See Also:
TermsEnum.docFreq()
-
totalTermFreq
public final long totalTermFreq()
returns the total number of occurrences of this term- See Also:
TermsEnum.totalTermFreq()
-
-