|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.facet.search.PerCategoryListAggregator
public class PerCategoryListAggregator
A FacetsAggregator
which invokes the proper aggregator per
CategoryListParams
.
Constructor Summary | |
---|---|
PerCategoryListAggregator(Map<CategoryListParams,FacetsAggregator> aggregators,
FacetIndexingParams fip)
|
Method Summary | |
---|---|
void |
aggregate(FacetsCollector.MatchingDocs matchingDocs,
CategoryListParams clp,
FacetArrays facetArrays)
Aggregate the facets found in the given matching documents. |
boolean |
requiresDocScores()
Returns true if this aggregator requires document scores. |
void |
rollupValues(FacetRequest fr,
int ordinal,
int[] children,
int[] siblings,
FacetArrays facetArrays)
Rollup the values of the given ordinal. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PerCategoryListAggregator(Map<CategoryListParams,FacetsAggregator> aggregators, FacetIndexingParams fip)
Method Detail |
---|
public void aggregate(FacetsCollector.MatchingDocs matchingDocs, CategoryListParams clp, FacetArrays facetArrays) throws IOException
FacetsAggregator
aggregate
in interface FacetsAggregator
IOException
public void rollupValues(FacetRequest fr, int ordinal, int[] children, int[] siblings, FacetArrays facetArrays)
FacetsAggregator
CategoryListParams.OrdinalPolicy.NO_PARENTS
. The given
ordinal is the requested category, and you should use the children and
siblings arrays to traverse its sub-tree.
rollupValues
in interface FacetsAggregator
public boolean requiresDocScores()
FacetsAggregator
true
if this aggregator requires document scores.
requiresDocScores
in interface FacetsAggregator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |