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.StatsValuesFactory.DateStatsValues dsv, StatsField field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accumulate(int docId)
Accumulate the value associated withdocID
.void
accumulate(org.apache.lucene.util.BytesRef value, int count)
Accumulate the values based on the given valuevoid
accumulate(org.apache.solr.common.util.NamedList<?> stv)
Accumulate the values based on those in the given NamedListvoid
addFacet(String facetName, Map<String,StatsValues> facetValues)
Adds the facet statistics for the facet with the given namevoid
addMissing(int count)
Updates the statistics when multiple documents are missing a valueorg.apache.solr.common.util.NamedList<?>
getStatsValues()
Translates the values into a NamedList representationvoid
missing()
Updates the statistics when a document is missing a valuevoid
setNextReader(org.apache.lucene.index.LeafReaderContext ctx)
Set the context forStatsValues.accumulate(int)
.
-
-
-
Constructor Detail
-
SortedDateStatsValues
public SortedDateStatsValues(org.apache.solr.handler.component.StatsValuesFactory.DateStatsValues dsv, StatsField field)
-
-
Method Detail
-
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 interfaceStatsValues
- 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 withdocID
.- Specified by:
accumulate
in 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:StatsValues
Accumulate the values based on the given value- Specified by:
accumulate
in 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:StatsValues
Updates the statistics when a document is missing a value- Specified by:
missing
in interfaceStatsValues
-
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 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:StatsValues
Adds the facet statistics for the facet with the given name- Specified by:
addFacet
in 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:StatsValues
Translates the values into a NamedList representation- Specified by:
getStatsValues
in interfaceStatsValues
- 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 forStatsValues.accumulate(int)
.- Specified by:
setNextReader
in interfaceStatsValues
- Throws:
IOException
-
-