QuerySelectExpression 查询选择子句
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface QuerySelectExpression {
"concept": "QuerySelectExpression", // 产品概念
"distinct": boolean, // distinct
"star": boolean, // star
"selectElements": Array<QueryAggregateExpression | QueryFieldExpression>, // selectElements,当前交互,selectElements 需要支持 QueryAggregateExpression | QueryFieldExpression 类型
}
class QuerySelectExpressionTreeNode {
ConceptEnum concept; // 产品概念
boolean distinct; // distinct
boolean star; // star
List<QueryAggregateExpressionTreeNode | QueryFieldExpressionTreeNode> selectElements; // selectElements,当前交互,selectElements 需要支持 QueryAggregateExpression | QueryFieldExpression 类型
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/QuerySelectExpression",
"definitions": {
"QuerySelectExpression": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "QuerySelectExpression"
},
"distinct": {
"type": "boolean"
},
"star": {
"type": "boolean"
},
"selectElements": {
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/QueryAggregateExpression"
},
{
"$ref": "#/definitions/QueryFieldExpression"
}
]
}
}
},
"required": [
"concept",
"distinct",
"star",
"selectElements"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "QuerySelectExpression",
"distinct": false,
"star": true,
"selectElements": []
}
concept: QuerySelectExpression
distinct: false
star: true
selectElements: []