|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.facet.associations.SumIntAssociationFacetsAggregator
public class SumIntAssociationFacetsAggregator
A FacetsAggregator which computes the weight of a category as the sum
of the integer values associated with it in the result documents. Assumes
that the association encoded for each ordinal is
CategoryIntAssociation.
NOTE: this aggregator does not support
rollupValues(FacetRequest, int, int[], int[], FacetArrays). It only
aggregates the categories for which you added a CategoryAssociation.
| Constructor Summary | |
|---|---|
SumIntAssociationFacetsAggregator()
|
|
| Method Summary | |
|---|---|
void |
aggregate(FacetsCollector.MatchingDocs matchingDocs,
CategoryListParams clp,
FacetArrays facetArrays)
Aggregate the facets found in the given matching documents. |
OrdinalValueResolver |
createOrdinalValueResolver(FacetRequest facetRequest,
FacetArrays arrays)
Creates the appropriate OrdinalValueResolver for this aggregator
and the given FacetRequest. |
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 SumIntAssociationFacetsAggregator()
| Method Detail |
|---|
public void aggregate(FacetsCollector.MatchingDocs matchingDocs,
CategoryListParams clp,
FacetArrays facetArrays)
throws IOException
FacetsAggregator
aggregate in interface FacetsAggregatorIOExceptionpublic boolean requiresDocScores()
FacetsAggregatortrue if this aggregator requires document scores.
requiresDocScores in interface FacetsAggregator
public 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 FacetsAggregator
public OrdinalValueResolver createOrdinalValueResolver(FacetRequest facetRequest,
FacetArrays arrays)
FacetsAggregatorOrdinalValueResolver for this aggregator
and the given FacetRequest. The request is passed so that compound
aggregators can return the correct OrdinalValueResolver.
createOrdinalValueResolver in interface FacetsAggregator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||