org.apache.solr.search.stats

## Class TermStats

- java.lang.Object
- - org.apache.solr.search.stats.TermStats

-     public class TermStats
      extends Object

  Modifiable version of `TermStatistics` useful for aggregation of per-shard stats.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `long` | `docFreq`
    `String` | `term`
    `long` | `totalTermFreq`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TermStats(String term)`
    `TermStats(String term, long docFreq, long totalTermFreq)`
    `TermStats(String field, TermStatistics stats)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `add(TermStats stats)`
    `String` | `toString()`
    `TermStatistics` | `toTermStatistics()`

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

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

- - ### Field Detail

    - #### term

          public final String term

    - #### docFreq

          public long docFreq

    - #### totalTermFreq

          public long totalTermFreq

  - ### Constructor Detail

    - #### TermStats

          public TermStats(String term)

    - #### TermStats

          public TermStats(String term,
                           long docFreq,
                           long totalTermFreq)

    - #### TermStats

          public TermStats(String field,
                           TermStatistics stats)

  - ### Method Detail

    - #### add

          public void add(TermStats stats)

    - #### toTermStatistics

          public TermStatistics toTermStatistics()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.