Package org.eclipse.mat.query.quantize
Interface Quantize.Function
-
- Enclosing class:
- Quantize
public static interface Quantize.FunctionA function used to aggregate values into one bucket, e.g. adding or averaging numbers. There exists one instance per bucket.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceQuantize.Function.FactoryInterface for a function factory.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(java.lang.Object value)Called when an object is added to the bucket.java.lang.ObjectgetValue()Called to retrieve the function value.
-
-
-
Method Detail
-
add
void add(java.lang.Object value)
Called when an object is added to the bucket.- Parameters:
value- to be added to the bucket
-
getValue
java.lang.Object getValue()
Called to retrieve the function value. If it is expensive to calculate, this value must be cached.- Returns:
- the statistic
-
-