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