QueryAggregateExpression 查询聚合函数
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface QueryAggregateExpression {
"concept": "QueryAggregateExpression", // 产品概念
"asName": string, // 聚合属性别名
"aggregateName": "COUNT" | "COUNTD" | "SUM" | "AVG" | "MAX" | "MIN", // 聚合函数名称
"aggregateParam": QueryFieldExpression, // 聚合函数参数
}
class QueryAggregateExpressionTreeNode {
ConceptEnum concept; // 产品概念
String asName; // 聚合属性别名
AggregateNameEnum aggregateName; // 聚合函数名称
QueryFieldExpressionTreeNode aggregateParam; // 聚合函数参数
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/QueryAggregateExpression",
"definitions": {
"QueryAggregateExpression": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "QueryAggregateExpression"
},
"asName": {
"type": "string"
},
"aggregateName": {
"type": "string",
"enum": [
"COUNT",
"COUNTD",
"SUM",
"AVG",
"MAX",
"MIN"
]
},
"aggregateParam": {
"$ref": "#/definitions/QueryFieldExpression"
}
},
"required": [
"concept",
"asName",
"aggregateName",
"aggregateParam"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "QueryAggregateExpression",
"asName": null,
"aggregateName": null,
"aggregateParam": null
}
concept: QueryAggregateExpression
asName: null
aggregateName: null
aggregateParam: null