Class TermStats

java.lang.Object
org.apache.lucene.codecs.TermStats

public class TermStats extends Object
Holder for per-term statistics.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final 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
    Constructor
    Description
    TermStats(int docFreq, long totalTermFreq)
    Sole constructor.
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • docFreq

      public final int docFreq
      How many documents have at least one occurrence of this term.
    • totalTermFreq

      public final long totalTermFreq
      Total number of times this term occurs across all documents in the field.
  • Constructor Details

    • TermStats

      public TermStats(int docFreq, long totalTermFreq)
      Sole constructor.