Uses of Interface
net.pricefx.formulaengine.scripting.portlets.ResultMatrix
Package
Description
Provides Formula Engine API classes.
Provides API related to scripting, including interface
PublicGroovyAPI
, that represents what can be reached in the Groovy element syntax as api
.Provides
InputBuilderFactory
as a convenient way to create Inputs.Defines set of data transfer object (DTO) classes related to Calculations.
-
Uses of ResultMatrix in net.pricefx.formulaengine
Modifier and TypeMethodDescriptionIRebateRecordManager.asResultMatrix
(String... attributes) Return a ResultMatrix listing all RR/CORs in the agreement, optionally the fields/attributes to be shown as matrix columns.DatamartContext.DataProfilerResult.getDimensions()
DatamartContext.DataProfilerResult.getMeasures()
DatamartRowSet.toResultMatrix()
Converts the data toResultMatrix
Limited toDatamartRowSet.RESULTMATRIX_MAXROWS
rows.DatamartRowSet.toResultMatrix
(int maxRows) Converts the data toResultMatrix
Limited to user defined number of rows which cannot exceedDatamartRowSet.RESULTMATRIX_MAXROWS
. -
Uses of ResultMatrix in net.pricefx.formulaengine.scripting
Modifier and TypeMethodDescriptionPublicGroovyAPI.newMatrix()
Creates a new result matrix DTO object that can be further customized and populated with calculated data.Creates a new result matrix DTO object that can be further customized and populated with calculated data.PublicGroovyAPI.newMatrix
(Collection<String> columns) Creates a new result matrix DTO object that can be further customized and populated with calculated data.Matrix2D.toResultMatrix()
Matrix2D.toResultMatrix
(boolean withColumnFormats) Converts this Matrix2D into ResultMatrixMatrix2D.toResultMatrix
(Map<String, String> columnMapping) Create a ResultMatrix from a Matrix2D, selecting only the columns included in the mapping if such a mapping is provided.Matrix2D.toResultMatrix
(Map<String, String> columnMapping, boolean withColumnFormats) Modifier and TypeMethodDescriptionstatic Matrix2DImpl
Matrix2D.fromResultMatrix
(ResultMatrix resultMatrix) -
Uses of ResultMatrix in net.pricefx.formulaengine.scripting.inputbuilder
Modifier and TypeMethodDescriptionInputBuilderFactory.createResultMatrixFilterBuilder
(String paramName, ResultMatrix resultMatrix) Creates a new user input of theRESULTMATRIXFILTER
type.ResultMatrixFilterBuilder.setResultMatrix
(ResultMatrix resultMatrix) Use resultMatrix provided as input parameter to generate filter input.ModifierConstructorDescriptionResultMatrixFilterBuilder
(InputBuilderContext builderContext, String paramName, ResultMatrix resultMatrix) -
Uses of ResultMatrix in net.pricefx.formulaengine.scripting.portlets
Modifier and TypeMethodDescriptionResultMatrix.calculateGroupByData()
Proceed grouping with groupBy columns (if missingResultMatrixGroupingException.NullOrEmptyException
is thrown) for numeric columns and aggregation strategy passed bywithColumnAggregation(String, Object)
orwithColumnAggregation(String, AggregateFunctionType)
orwithColumnAggregations(Map)
.default ResultMatrix
Transpose the matrix.default ResultMatrix
Transpose the matrix.ResultMatrix.withColumn
(String column) Adds a column to the existing set of columnsResultMatrix.withColumn
(String column, String tooltip) Adds a column to the existing set of columns including a tooltipResultMatrix.withColumnAggregation
(String column, Object aggregateValue) Aggregation strategy definition done by column name and aggregation value (ex. some constantString
).ResultMatrix.withColumnAggregation
(String numericColumn, ResultMatrixGrouping.AggregateFunctionType aggregateFunctionType) Aggregation strategy definition done by column-name-holding-numeric-values only (numericColumn) and aggregation type (aggregateFunctionType).ResultMatrix.withColumnAggregations
(Map<String, Object> columnAggregations) Aggregation strategy definition done by Map with numeric columns' name and aggregation type or value.ResultMatrix.withColumnFormat
(String column, FieldFormatType fft) Sets a column format for a specified columndefault ResultMatrix
ResultMatrix.withColumnFormats
(Map<String, FieldFormatType> columnFormats) Sets a column formats for multiple columns.ResultMatrix.withColumns
(Collection<String> columns) Adds columns to the existing set of columnsResultMatrix.withColumnTooltip
(String column, String tooltip) Adds a tooltip to a columnResultMatrix.withColumnTranslation
(String column, Map<String, String> translations) Adds translated labels for the given column.ResultMatrix.withDefaultFormat
(FieldFormatType fft) Sets a default column formatResultMatrix.withDisablePreferences
(boolean disablePreferences) Allows to disable saving preferences of the matrix grid (columns, sorting, filtering).ResultMatrix.withDisableSorting
(boolean disableSorting) Set sorting capability in UI gridResultMatrix.withEnableClientFilter
(boolean enableClientFilter) ResultMatrix.withEnableGroupByControls
(boolean enableGroupByControls) Enables or disables the "Group by" controls.ResultMatrix.withEscapeHTML
(boolean escapeHTML) Set HTML escaping flag.ResultMatrix.withExpandedGroups
(Collection<String> columns) Definition of columns' names dedicated for expand level while grouping (same for each row, nested levels are not supported).
Columns passed in the collection need to be present inResultMatrix
groupBy's attribute.
If, at least one column, is not part of theResultMatrix
groupBy's attribute, theResultMatrixGroupingException.NotPartOfGroupByAttributeException
will be thrown.
If global expand data in grouping is off (isGroupByDataExpanded()
equals to false) thengetExpandedGroups()
will be ignored.ResultMatrix.withFrozenColumns
(Collection<String> frozenColumns) Sets the specified columns as frozen.ResultMatrix.withGroupBy
(Collection<String> columns) Definition of columns' names dedicated for grouping.ResultMatrix.withGroupByColumnLabel
(String groupByColumnLabel) Sets a custom label for the Group column in the ResultMatrix table.ResultMatrix.withGroupByDataExpanded
(boolean isGroupByDataExpanded) Definition of global group by data expand.ResultMatrix.withPreferenceName
(String preferenceName) Sets the so-called preference name.Adds a data row.Adds multiple data rows.ResultMatrix.withShowGroupByColumns
(boolean showGroupByColumns) Sets the visibility of the Group By columns in the ResultMatrix.ResultMatrix.withShowGroupByControls
(boolean showGroupByControls) Sets whether "Group by" controls are completely hidden.Sets the title that will be shown as window title of the result matrix in the clientResultMatrix.withTotalRow
(Object totalRow) Assigns any data to thetotalRow
property within the ResultMatrix. -
Uses of ResultMatrix in net.pricefx.server.dto.calculation
Modifier and TypeMethodDescriptionResultHighchart.addResultMatrixTab
(ResultMatrix matrix) The automatically filled data tab can be replaced by customized ResultMatrix data.ResultHighchart.setDrilldownResultMatrixTabs
(String drilldownKey, ResultMatrix... matrices) At least one ResultMatrix is expected for each drilldown series in a chart.ResultHighchart.setResultMatrixTabs
(ResultMatrix... matrices) The automatically filled data tab can be replaced by customized ResultMatrix data.