-
Notifications
You must be signed in to change notification settings - Fork 288
Expand file tree
/
Copy pathBucketAggParameter.js
More file actions
39 lines (35 loc) · 1.43 KB
/
BucketAggParameter.js
File metadata and controls
39 lines (35 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
import { Util } from '../commontypes/Util';
import { AggregationParameter } from './AggregationParameter';
/**
* @class BucketAggParameter
* @deprecatedclass SuperMap.BucketAggParameter
* @classdesc 子聚合类查询参数设置类。此类用于设置子聚合类查询的聚合名称、聚合字段、子聚合类集合等参数。<br>
* 注意:该参数仅支持数据来源为 Elasticsearch 服务的 SuperMap iServer REST 数据服务。
* @category iServer Data FeatureResults
* @param {Object} options - 参数。
* @param {Array.<MetricsAggParameter>} options.subAggs - 子聚合类集合。
* @extends {AggregationParameter}
* @usage
*/
export class BucketAggParameter extends AggregationParameter {
constructor(options) {
super();
/**
* @member {Array.<MetricsAggParameter>} BucketAggParameter.prototype.subAggs
* @description 子聚合类集合。
*/
this.subAggs = null;
this.aggType = null;
this.CLASS_NAME = 'SuperMap.BucketAggParameter';
Util.extend(this, options);
}
destroy() {
var me = this;
if (me.subAggs) {
me.subAggs = null;
}
}
}