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)
StatsValues
accumulate
in interface StatsValues
stv
- NamedList whose values will be used to accumulate the current valuespublic void accumulate(int docId) throws IOException
StatsValues
docID
.accumulate
in interface StatsValues
IOException
StatsValues.setNextReader(org.apache.lucene.index.LeafReaderContext)
public void accumulate(BytesRef value, int count)
StatsValues
accumulate
in interface StatsValues
value
- Value to use to accumulate the current valuescount
- number of times to accumulate this valuepublic void missing()
StatsValues
missing
in interface StatsValues
public void addMissing(int count)
StatsValues
addMissing
in interface StatsValues
count
- number of times to count a missing valuepublic void addFacet(String facetName, Map<String,StatsValues> facetValues)
StatsValues
addFacet
in interface StatsValues
facetName
- Name of the facetfacetValues
- Facet statistics on a per facet value basispublic NamedList<?> getStatsValues()
StatsValues
getStatsValues
in interface StatsValues
public void setNextReader(LeafReaderContext ctx) throws IOException
StatsValues
StatsValues.accumulate(int)
.setNextReader
in interface StatsValues
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.