Package org.eclipse.mat.query.quantize
Class Quantize.Builder
java.lang.Object
org.eclipse.mat.query.quantize.Quantize.Builder
- Enclosing class:
- Quantize
Quantize
factory-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates the Quantize object.column
(String label, Quantize.Function.Factory function) Add a column identified by label and function.column
(String label, Quantize.Function.Factory function, Column.SortDirection sortDirection) Add a column identified by label and function and sort the result in the given sort direction.
-
Method Details
-
column
Add a column identified by label and function.- Parameters:
label
- a label for the columnfunction
- a function for the column- Returns:
- the original
Quantize.Builder
so more operations can be chained.
-
column
public Quantize.Builder column(String label, Quantize.Function.Factory function, Column.SortDirection sortDirection) Add a column identified by label and function and sort the result in the given sort direction.- Parameters:
label
- the label for the columnfunction
- a function for the columnsortDirection
- the direction to sort- Returns:
- the original
Quantize.Builder
so more operations can be chained.
-
addDerivedData
-
build
Creates the Quantize object.- Returns:
- the
Quantize
object created and modified by theQuantize.Builder
, ready for use.
-