Interface StatsValues
- All Known Implementing Classes:
SortedDateStatsValues,SortedNumericStatsValues
public interface StatsValues
StatsValue defines the interface for the collection of statistical values about fields and
facets.
-
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 foraccumulate(int).
-
Method Details
-
accumulate
void accumulate(org.apache.solr.common.util.NamedList<?> stv) Accumulate the values based on those in the given NamedList- Parameters:
stv- NamedList whose values will be used to accumulate the current values
-
accumulate
Accumulate the value associated withdocID.- Throws:
IOException- See Also:
-
accumulate
void accumulate(org.apache.lucene.util.BytesRef value, int count) Accumulate the values based on the given value- Parameters:
value- Value to use to accumulate the current valuescount- number of times to accumulate this value
-
missing
void missing()Updates the statistics when a document is missing a value -
addMissing
void addMissing(int count) Updates the statistics when multiple documents are missing a value- Parameters:
count- number of times to count a missing value
-
addFacet
Adds the facet statistics for the facet with the given name- Parameters:
facetName- Name of the facetfacetValues- Facet statistics on a per facet value basis
-
getStatsValues
org.apache.solr.common.util.NamedList<?> getStatsValues()Translates the values into a NamedList representation- Returns:
- NamedList representation of the current values
-
setNextReader
Set the context foraccumulate(int).- Throws:
IOException
-