Package org.apache.lucene.facet.taxonomy
Class AssociationAggregationFunction
java.lang.Object
org.apache.lucene.facet.taxonomy.AssociationAggregationFunction
Specify aggregation logic used in
TaxonomyFacetIntAssociations
and TaxonomyFacetFloatAssociations
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final AssociationAggregationFunction
Aggregation that computes the maximum valuestatic final AssociationAggregationFunction
Aggregation that computes the sum -
Constructor Summary
-
Method Summary
-
Field Details
-
MAX
Aggregation that computes the maximum value -
SUM
Aggregation that computes the sum
-
-
Constructor Details
-
AssociationAggregationFunction
protected AssociationAggregationFunction()Sole constructor.
-
-
Method Details
-
aggregate
public abstract int aggregate(int existingVal, int newVal) Implement aggregation logic for integers -
aggregate
public abstract float aggregate(float existingVal, float newVal) Implement aggregation logic for floats
-