Class SortedDateStatsValues
- java.lang.Object
-
- org.apache.solr.handler.component.SortedDateStatsValues
-
- All Implemented Interfaces:
StatsValues
public class SortedDateStatsValues extends Object implements StatsValues
-
-
Constructor Summary
Constructors Constructor Description SortedDateStatsValues(org.apache.solr.handler.component.DateStatsValues dsv, StatsField field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccumulate(int docId)Accumulate the value associated withdocID.voidaccumulate(org.apache.lucene.util.BytesRef value, int count)Accumulate the values based on the given valuevoidaccumulate(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 valueNamedList<?>getStatsValues()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 Detail
-
SortedDateStatsValues
public SortedDateStatsValues(org.apache.solr.handler.component.DateStatsValues dsv, StatsField field)
-
-
Method Detail
-
accumulate
public void accumulate(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
public void accumulate(int docId) throws IOExceptionDescription copied from interface:StatsValuesAccumulate the value associated withdocID.- Specified by:
accumulatein interfaceStatsValues- Throws:
IOException- See Also:
StatsValues.setNextReader(org.apache.lucene.index.LeafReaderContext)
-
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
public void addFacet(String facetName, Map<String,StatsValues> facetValues)
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 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
public void setNextReader(org.apache.lucene.index.LeafReaderContext ctx) throws IOExceptionDescription copied from interface:StatsValuesSet the context forStatsValues.accumulate(int).- Specified by:
setNextReaderin interfaceStatsValues- Throws:
IOException
-
-