AggrFunction class
Represents an aggregate function
Constructors
Section titled “Constructors”constructor
Section titled “constructor”The default constructor. ⊕ new AggrFunction(): AggrFunction
Public Properties
Section titled “Public Properties”appliedTypes
Section titled “appliedTypes”● appliedTypes: DataType
[]
caption
Section titled “caption”The caption of the aggregate function.
● caption: string
displayFormat
Section titled “displayFormat”The display format of aggregate function.
● displayFormat: string
The function id.
(e.g. SUM
or COUNT
)
● id: string
sqlExpr
Section titled “sqlExpr”The SQL expression
● sqlExpr: string
Public Methods
Section titled “Public Methods”getAppliedTypesOrDefault
Section titled “getAppliedTypesOrDefault”▸ getAppliedTypesOrDefault(): DataType
[]
Returns DataType
[]
loadFromData
Section titled “loadFromData”Loads an aggregate function from its JSON representation object
▸ loadFromData(aggrFunction: AggrFuncData): void
Parameters:
Section titled “Parameters:”- aggrFunction: AggrFuncData - The JSON representation object
Returns void