public class SortedDateStatsValues extends Object implements StatsValues
| Constructor and Description |
|---|
SortedDateStatsValues(org.apache.solr.handler.component.DateStatsValues dsv,
StatsField field) |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(BytesRef value,
int count)
Accumulate the values based on the given value
|
void |
accumulate(int docId)
Accumulate the value associated with
docID. |
void |
accumulate(NamedList stv)
Accumulate the values based on those in the given NamedList
|
void |
addFacet(String facetName,
Map<String,StatsValues> facetValues)
Adds the facet statistics for the facet with the given name
|
void |
addMissing(int count)
Updates the statistics when multiple documents are missing a value
|
NamedList<?> |
getStatsValues()
Translates the values into a NamedList representation
|
void |
missing()
Updates the statistics when a document is missing a value
|
void |
setNextReader(LeafReaderContext ctx)
Set the context for
StatsValues.accumulate(int). |
public SortedDateStatsValues(org.apache.solr.handler.component.DateStatsValues dsv,
StatsField field)
public void accumulate(NamedList stv)
StatsValuesaccumulate in interface StatsValuesstv - NamedList whose values will be used to accumulate the current valuespublic void accumulate(int docId)
throws IOException
StatsValuesdocID.accumulate in interface StatsValuesIOExceptionStatsValues.setNextReader(org.apache.lucene.index.LeafReaderContext)public void accumulate(BytesRef value, int count)
StatsValuesaccumulate in interface StatsValuesvalue - Value to use to accumulate the current valuescount - number of times to accumulate this valuepublic void missing()
StatsValuesmissing in interface StatsValuespublic void addMissing(int count)
StatsValuesaddMissing in interface StatsValuescount - number of times to count a missing valuepublic void addFacet(String facetName, Map<String,StatsValues> facetValues)
StatsValuesaddFacet in interface StatsValuesfacetName - Name of the facetfacetValues - Facet statistics on a per facet value basispublic NamedList<?> getStatsValues()
StatsValuesgetStatsValues in interface StatsValuespublic void setNextReader(LeafReaderContext ctx) throws IOException
StatsValuesStatsValues.accumulate(int).setNextReader in interface StatsValuesIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.