Class SortedNumericStatsValues

    • Constructor Detail

      • SortedNumericStatsValues

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

      • accumulate

        public void accumulate​(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​(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 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