Class SortedNumericStatsValues

java.lang.Object
org.apache.solr.handler.component.SortedNumericStatsValues
All Implemented Interfaces:
StatsValues

public class SortedNumericStatsValues extends Object implements StatsValues
  • Constructor Summary

    Constructors
    Constructor
    Description
    SortedNumericStatsValues(org.apache.solr.handler.component.StatsValuesFactory.NumericStatsValues nsv, StatsField field)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accumulate(int docId)
    Accumulate the value associated with docID.
    void
    accumulate(org.apache.lucene.util.BytesRef value, int count)
    Accumulate the values based on the given value
    void
    accumulate(org.apache.solr.common.util.NamedList<?> stv)
    Accumulate the values based on those in the given NamedList
    void
    addFacet(String facetName, Map<String,StatsValues> facetValues)
    Adds the facet statistics for the facet with the given name
    void
    addMissing(int count)
    Updates the statistics when multiple documents are missing a value
    org.apache.solr.common.util.NamedList<?>
    Translates the values into a NamedList representation
    void
    Updates the statistics when a document is missing a value
    void
    setNextReader(org.apache.lucene.index.LeafReaderContext ctx)
    Set the context for StatsValues.accumulate(int).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SortedNumericStatsValues

      public SortedNumericStatsValues(org.apache.solr.handler.component.StatsValuesFactory.NumericStatsValues nsv, StatsField field)
  • Method Details

    • accumulate

      public void accumulate(org.apache.solr.common.util.NamedList<?> stv)
      Description copied from interface: StatsValues
      Accumulate the values based on those in the given NamedList
      Specified by:
      accumulate in interface StatsValues
      Parameters:
      stv - NamedList whose values will be used to accumulate the current values
    • accumulate

      public void accumulate(int docId) throws IOException
      Description copied from interface: StatsValues
      Accumulate the value associated with docID.
      Specified by:
      accumulate in interface StatsValues
      Throws:
      IOException
      See Also:
    • accumulate

      public void accumulate(org.apache.lucene.util.BytesRef value, int count)
      Description copied from interface: StatsValues
      Accumulate the values based on the given value
      Specified by:
      accumulate in interface StatsValues
      Parameters:
      value - Value to use to accumulate the current values
      count - number of times to accumulate this value
    • missing

      public void missing()
      Description copied from interface: StatsValues
      Updates the statistics when a document is missing a value
      Specified by:
      missing in interface StatsValues
    • addMissing

      public void addMissing(int count)
      Description copied from interface: StatsValues
      Updates the statistics when multiple documents are missing a value
      Specified by:
      addMissing in interface StatsValues
      Parameters:
      count - number of times to count a missing value
    • addFacet

      public void addFacet(String facetName, Map<String,StatsValues> facetValues)
      Description copied from interface: StatsValues
      Adds the facet statistics for the facet with the given name
      Specified by:
      addFacet in interface StatsValues
      Parameters:
      facetName - Name of the facet
      facetValues - Facet statistics on a per facet value basis
    • getStatsValues

      public org.apache.solr.common.util.NamedList<?> getStatsValues()
      Description copied from interface: StatsValues
      Translates the values into a NamedList representation
      Specified by:
      getStatsValues in interface StatsValues
      Returns:
      NamedList representation of the current values
    • setNextReader

      public void setNextReader(org.apache.lucene.index.LeafReaderContext ctx) throws IOException
      Description copied from interface: StatsValues
      Set the context for StatsValues.accumulate(int).
      Specified by:
      setNextReader in interface StatsValues
      Throws:
      IOException