ArcGIS Runtime SDK for iOS: AGSStatisticDefinition.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSStatisticDefinition.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2022 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24  //Required for Globals API doc
26 
27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSObject.h>
29 
30 
31 
37 typedef NS_ENUM(NSInteger, AGSStatisticType) {
45 };
46 
54 
55 #pragma mark -
56 #pragma mark initializers
57 
58 
59 
60 
68 -(instancetype)initWithOnFieldName:(NSString *)onFieldName
69  statisticType:(AGSStatisticType)statisticType
70  outputAlias:(nullable NSString *)outputAlias;
71 
79 +(instancetype)statisticDefinitionWithOnFieldName:(NSString *)onFieldName
80  statisticType:(AGSStatisticType)statisticType
81  outputAlias:(nullable NSString *)outputAlias;
82 
83 #pragma mark -
84 #pragma mark properties
85 
89 @property (nonatomic, copy, readwrite) NSString *onFieldName;
90 
94 @property (nonatomic, copy, readwrite) NSString *outputAlias;
95 
99 @property (nonatomic, assign, readwrite) AGSStatisticType statisticType;
100 
101 #pragma mark -
102 #pragma mark methods
103 
104 @end
105 
106 
AGSStatisticType
Definition: AGSStatisticDefinition.h:37
@ AGSStatisticTypeAverage
Definition: AGSStatisticDefinition.h:38
@ AGSStatisticTypeCount
Definition: AGSStatisticDefinition.h:39
@ AGSStatisticTypeMaximum
Definition: AGSStatisticDefinition.h:40
@ AGSStatisticTypeMinimum
Definition: AGSStatisticDefinition.h:41
@ AGSStatisticTypeSum
Definition: AGSStatisticDefinition.h:43
@ AGSStatisticTypeVariance
Definition: AGSStatisticDefinition.h:44
@ AGSStatisticTypeStandardDeviation
Definition: AGSStatisticDefinition.h:42
Definition: AGSObject.h:28
Defines a statistic to be queried.
Definition: AGSStatisticDefinition.h:54
NSString * outputAlias
Definition: AGSStatisticDefinition.h:94
NSString * onFieldName
Definition: AGSStatisticDefinition.h:89
AGSStatisticType statisticType
Definition: AGSStatisticDefinition.h:99