org.apache.lucene.search

## Class DocValuesStatsCollector

- java.lang.Object
- - org.apache.lucene.search.DocValuesStatsCollector

- All Implemented Interfaces:
    Collector

      public class DocValuesStatsCollector
      extends Object
      implements Collector

  A `Collector` which computes statistics for a DocValues field.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DocValuesStatsCollector(DocValuesStats<?> stats)` Creates a collector to compute statistics for a DocValues field using the given `stats`.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `LeafCollector` | `getLeafCollector(LeafReaderContext context)`
    `boolean` | `needsScores()`

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

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

- - ### Constructor Detail

    - #### DocValuesStatsCollector

          public DocValuesStatsCollector(DocValuesStats<?> stats)

      Creates a collector to compute statistics for a DocValues field using the given `stats`.

  - ### Method Detail

    - #### getLeafCollector

          public LeafCollector getLeafCollector(LeafReaderContext context)
                                         throws IOException

      Specified by:
        `getLeafCollector` in interface `Collector`
      Throws:
        `IOException`

    - #### needsScores

          public boolean needsScores()

      Specified by:
        `needsScores` in interface `Collector`

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