org.apache.solr.analytics.accumulator

## Class ValueAccumulator

- java.lang.Object
- - org.apache.lucene.search.SimpleCollector
  - - org.apache.solr.analytics.accumulator.ValueAccumulator

- All Implemented Interfaces:
    Collector, LeafCollector
  Direct Known Subclasses:
    BasicAccumulator, FieldFacetAccumulator, QueryFacetAccumulator

      public abstract class ValueAccumulator
      extends SimpleCollector

  Abstract Collector that manages all StatsCollectors, Expressions and Facets.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ValueAccumulator()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract void` | `compute()` Finalizes the statistics within each StatsCollector.
    `abstract NamedList<?>` | `export()`
    `void` | `postProcess()`

    - ### Methods inherited from class org.apache.lucene.search.SimpleCollector

      `collect, doSetNextReader, getLeafCollector, setScorer`

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

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

    - ### Methods inherited from interface org.apache.lucene.search.Collector

      `needsScores`

- - ### Constructor Detail

    - #### ValueAccumulator

          public ValueAccumulator()

  - ### Method Detail

    - #### compute

          public abstract void compute()

      Finalizes the statistics within each StatsCollector. Must be called before `export()`.

    - #### export

          public abstract NamedList<?> export()

    - #### postProcess

          public void postProcess()
                           throws IOException

      Throws:
        `IOException`

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