Package org.apache.lucene.facet.taxonomy
Class AssociationAggregationFunction
- java.lang.Object
-
- org.apache.lucene.facet.taxonomy.AssociationAggregationFunction
-
public abstract class AssociationAggregationFunction extends Object
Specify aggregation logic used inTaxonomyFacetIntAssociationsandTaxonomyFacetFloatAssociations.
-
-
Field Summary
Fields Modifier and Type Field Description static AssociationAggregationFunctionMAXAggregation that computes the maximum valuestatic AssociationAggregationFunctionSUMAggregation that computes the sum
-
Constructor Summary
Constructors Modifier Constructor Description protectedAssociationAggregationFunction()Sole constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract floataggregate(float existingVal, float newVal)Implement aggregation logic for floatsabstract intaggregate(int existingVal, int newVal)Implement aggregation logic for integers
-
-
-
Field Detail
-
MAX
public static final AssociationAggregationFunction MAX
Aggregation that computes the maximum value
-
SUM
public static final AssociationAggregationFunction SUM
Aggregation that computes the sum
-
-