Package org.eclipse.mat.query.quantize
Class LatestValueFunction
java.lang.Object
org.eclipse.mat.query.quantize.LatestValueFunction
- All Implemented Interfaces:
Quantize.Function.Factory
Simple quantize function which just returns the last value add to the
distribution bucket.
Its purpose is performance optimization: Assume you want to create a frequency distribution on column value A and you know there is a 1:1 relationship to column value B, one can use the LatestValueFunction to display column value B instead of adding B to the composite key (A,B).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a new function.Creates a new column to display the values of a function.
-
Constructor Details
-
LatestValueFunction
public LatestValueFunction()
-
-
Method Details
-
build
Description copied from interface:Quantize.Function.Factory
Builds a new function.- Specified by:
build
in interfaceQuantize.Function.Factory
- Returns:
- the new function.
- Throws:
Exception
- if there is a problem constructing the new Function.
-
column
Description copied from interface:Quantize.Function.Factory
Creates a new column to display the values of a function.- Specified by:
column
in interfaceQuantize.Function.Factory
- Parameters:
label
- the readable valued used to label the column- Returns:
- the new Column
-