public abstract class IntRollupFacetsAggregator extends Object implements FacetsAggregator
FacetsAggregator which implements
rollupValues(FacetRequest, int, int[], int[], FacetArrays) by
summing the values from FacetArrays.getIntArray(). Extending classes
should only implement aggregate(org.apache.lucene.facet.search.FacetsCollector.MatchingDocs, org.apache.lucene.facet.params.CategoryListParams, org.apache.lucene.facet.search.FacetArrays). Also, requiresDocScores()
always returns false.| Constructor and Description |
|---|
IntRollupFacetsAggregator() |
| Modifier and Type | Method and Description |
|---|---|
abstract 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.
|
public abstract void aggregate(FacetsCollector.MatchingDocs matchingDocs, CategoryListParams clp, FacetArrays facetArrays) throws IOException
FacetsAggregatoraggregate in interface FacetsAggregatorIOExceptionpublic final void rollupValues(FacetRequest fr, int ordinal, int[] children, int[] siblings, FacetArrays facetArrays)
FacetsAggregatorCategoryListParams.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 FacetsAggregatorpublic final boolean requiresDocScores()
FacetsAggregatortrue if this aggregator requires document scores.requiresDocScores in interface FacetsAggregatorCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.