Class SortedNumericStatsValues
java.lang.Object
org.apache.solr.handler.component.SortedNumericStatsValues
- All Implemented Interfaces:
StatsValues
-
Constructor Summary
ConstructorsConstructorDescriptionSortedNumericStatsValues(org.apache.solr.handler.component.StatsValuesFactory.NumericStatsValues nsv, StatsField field) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccumulate(int docId) Accumulate the value associated withdocID.voidaccumulate(org.apache.lucene.util.BytesRef value, int count) Accumulate the values based on the given valuevoidaccumulate(org.apache.solr.common.util.NamedList<?> stv) Accumulate the values based on those in the given NamedListvoidaddFacet(String facetName, Map<String, StatsValues> facetValues) Adds the facet statistics for the facet with the given namevoidaddMissing(int count) Updates the statistics when multiple documents are missing a valueorg.apache.solr.common.util.NamedList<?> Translates the values into a NamedList representationvoidmissing()Updates the statistics when a document is missing a valuevoidsetNextReader(org.apache.lucene.index.LeafReaderContext ctx) Set the context forStatsValues.accumulate(int).
-
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:StatsValuesAccumulate the values based on those in the given NamedList- Specified by:
accumulatein interfaceStatsValues- Parameters:
stv- NamedList whose values will be used to accumulate the current values
-
accumulate
Description copied from interface:StatsValuesAccumulate the value associated withdocID.- Specified by:
accumulatein interfaceStatsValues- Throws:
IOException- See Also:
-
accumulate
public void accumulate(org.apache.lucene.util.BytesRef value, int count) Description copied from interface:StatsValuesAccumulate the values based on the given value- Specified by:
accumulatein interfaceStatsValues- Parameters:
value- Value to use to accumulate the current valuescount- number of times to accumulate this value
-
missing
public void missing()Description copied from interface:StatsValuesUpdates the statistics when a document is missing a value- Specified by:
missingin interfaceStatsValues
-
addMissing
public void addMissing(int count) Description copied from interface:StatsValuesUpdates the statistics when multiple documents are missing a value- Specified by:
addMissingin interfaceStatsValues- Parameters:
count- number of times to count a missing value
-
addFacet
Description copied from interface:StatsValuesAdds the facet statistics for the facet with the given name- Specified by:
addFacetin interfaceStatsValues- Parameters:
facetName- Name of the facetfacetValues- Facet statistics on a per facet value basis
-
getStatsValues
public org.apache.solr.common.util.NamedList<?> getStatsValues()Description copied from interface:StatsValuesTranslates the values into a NamedList representation- Specified by:
getStatsValuesin interfaceStatsValues- Returns:
- NamedList representation of the current values
-
setNextReader
Description copied from interface:StatsValuesSet the context forStatsValues.accumulate(int).- Specified by:
setNextReaderin interfaceStatsValues- Throws:
IOException
-