java.lang.Object | |
↳ | com.esri.core.tasks.ags.query.OutStatistics |
The definitions for one or more field-based statistic to be calculated Note:
Values: An array of statistic definitions. A statistic definition specifies the type of statistic, the field on which it is to be calculated, and the resulting output field name.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | OutStatistics.Type |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
OutStatistics(OutStatistics.Type type, String onStatisticField, String outStatisticFieldName)
Instantiates an object of OutStatistic.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object obj) | ||||||||||
String |
getOnStatisticField()
Gets the onStatisticField of the OutStatistic.
| ||||||||||
String |
getOutStatisticFieldName()
Gets the outStatisticFieldName of the OutStatistic.
| ||||||||||
OutStatistics.Type |
getType()
Gets the type of the OutStatistic.
| ||||||||||
int | hashCode() | ||||||||||
boolean |
isEmpty()
Return true if all the fields are null.
| ||||||||||
void |
setOnStatisticField(String onStatisticField)
Sets the onStatisticField of the OutStatistic.
| ||||||||||
void |
setOutStatisticFieldName(String outStatisticFieldName)
Sets the outStatisticFieldName of the OutStatistic.
| ||||||||||
void |
setType(OutStatistics.Type type)
Sets the type of the OutStatistic.
| ||||||||||
String |
toJson()
Returns null if the instance is empty.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Instantiates an object of OutStatistic.
type | the type: OutStatistics.Type |
---|---|
onStatisticField | the field name e.g. "pop2007" |
outStatisticFieldName | the out field name e.g. "Population_2007" |
Gets the onStatisticField of the OutStatistic.
Gets the outStatisticFieldName of the OutStatistic.
Return true if all the fields are null.
Sets the onStatisticField of the OutStatistic.
onStatisticField | The onStatisticField to set. |
---|
Sets the outStatisticFieldName of the OutStatistic.
outStatisticFieldName | The outStatisticFieldName to set. |
---|
Sets the type of the OutStatistic.
type | The type to set. |
---|
Returns null if the instance is empty.
Syntax:
[ { "statisticType": "Example:", "onStatisticField": "Field1", "outStatisticFieldName": "Out_Field_Name1" }, { "statisticType": " ", "onStatisticField": "Field2", "outStatisticFieldName": "Out_Field_Name2" } ]
[ { "statisticType": "sum", "onStatisticField": "GENDER", "outStatisticFieldName": "PopulationByGender" }, { "statisticType": "avg", "onStatisticField": "INCOME", "outStatisticFieldName": "AverageIncome" } ]