|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatsValues
StatsValue defines the interface for the collection of statistical values about fields and facets.
Method Summary | |
---|---|
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(AtomicReaderContext ctx)
Set the context for accumulate(int) . |
Method Detail |
---|
void accumulate(NamedList stv)
stv
- NamedList whose values will be used to accumulate the current valuesvoid accumulate(int docID)
docID
.
setNextReader(AtomicReaderContext)
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(AtomicReaderContext ctx) throws IOException
accumulate(int)
.
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |