TermStats (Lucene 10.5.0 misc API)
Description: declaration: package: org.apache.lucene.misc, class: TermStats

Package org.apache.lucene.misc

# Class TermStats

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

public final class TermStats extends Object
Holder for a term along with its statistics (`docFreq` and `totalTermFreq`).

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `int`
  `docFreq`
  `String`
  `field`
  `BytesRef`
  `termtext`
  `long`
  `totalTermFreq`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### termtext

    public BytesRef termtext

  - ### field

    public String field

  - ### docFreq

    public int docFreq

  - ### totalTermFreq

    public long totalTermFreq

- ## Method Details

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`