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
StatsCollector s in FacetingAccumulator |
NamedList<?> |
export() |
boolean |
needsScores() |
postProcess
getLeafCollector, setScorer
protected 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 LeafCollector
collect
in class SimpleCollector
IOException
protected void doSetNextReader(LeafReaderContext context) throws IOException
StatsCollector
s in FacetingAccumulatordoSetNextReader
in class SimpleCollector
IOException
public void compute()
ValueAccumulator
export()
.compute
in class ValueAccumulator
public NamedList<?> export()
export
in class ValueAccumulator
public boolean needsScores()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.