public class QueryFacetAccumulator extends ValueAccumulator
| Modifier and Type | Field and Description |
|---|---|
protected String |
facetName |
protected String |
facetValue |
protected FacetValueAccumulator |
parent |
| Constructor and Description |
|---|
QueryFacetAccumulator(FacetValueAccumulator parent,
String facetName,
String facetValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(int doc)
Tell the FacetingAccumulator to collect the doc with the
given queryFacet and query.
|
void |
compute()
Finalizes the statistics within each StatsCollector.
|
protected void |
doSetNextReader(LeafReaderContext context)
Update the readers of the queryFacet
StatsCollectors in FacetingAccumulator |
NamedList<?> |
export() |
boolean |
needsScores() |
postProcessgetLeafCollector, setScorerprotected final FacetValueAccumulator parent
protected final String facetName
protected final String facetValue
public QueryFacetAccumulator(FacetValueAccumulator parent, String facetName, String facetValue)
public void collect(int doc)
throws IOException
collect in interface LeafCollectorcollect in class SimpleCollectorIOExceptionprotected void doSetNextReader(LeafReaderContext context) throws IOException
StatsCollectors in FacetingAccumulatordoSetNextReader in class SimpleCollectorIOExceptionpublic void compute()
ValueAccumulatorexport().compute in class ValueAccumulatorpublic NamedList<?> export()
export in class ValueAccumulatorpublic boolean needsScores()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.