Package org.eclipse.mat.query.quantize
Class Quantize.Builder
- java.lang.Object
-
- org.eclipse.mat.query.quantize.Quantize.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Quantize.BuilderaddDerivedData(ContextDerivedData.DerivedOperation operation)Quantizebuild()Creates the Quantize object.Quantize.Buildercolumn(String label, Quantize.Function.Factory function)Add a column identified by label and function.Quantize.Buildercolumn(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 Detail
-
column
public Quantize.Builder column(String label, Quantize.Function.Factory function)
Add a column identified by label and function.- Parameters:
label- a label for the columnfunction- a function for the column- Returns:
- the original
Quantize.Builderso 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.Builderso more operations can be chained.
-
addDerivedData
public Quantize.Builder addDerivedData(ContextDerivedData.DerivedOperation operation)
-
build
public Quantize build()
Creates the Quantize object.- Returns:
- the
Quantizeobject created and modified by theQuantize.Builder, ready for use.
-
-