|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.tasks.ags.query.OutStatistics
public class 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 Class Summary | |
|---|---|
static class |
OutStatistics.Type
|
| Constructor Summary | |
|---|---|
OutStatistics(OutStatistics.Type type,
String onStatisticField,
String outStatisticFieldName)
Instantiates an object of OutStatistic. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutStatistics(OutStatistics.Type type,
String onStatisticField,
String outStatisticFieldName)
type - the type: OutStatistics.TypeonStatisticField - the field name e.g. "pop2007"outStatisticFieldName - the out field name e.g. "Population_2007"| Method Detail |
|---|
public OutStatistics.Type getType()
public void setType(OutStatistics.Type type)
type - The type to set.public String getOnStatisticField()
public void setOnStatisticField(String onStatisticField)
onStatisticField - The onStatisticField to set.public String getOutStatisticFieldName()
public void setOutStatisticFieldName(String outStatisticFieldName)
outStatisticFieldName - The outStatisticFieldName to set.public boolean isEmpty()
public String toJson()
Syntax:
[
{
"statisticType": "",
"onStatisticField": "Field1",
"outStatisticFieldName": "Out_Field_Name1"
},
{
"statisticType": "",
"onStatisticField": "Field2",
"outStatisticFieldName": "Out_Field_Name2"
}
]
Example:
[
{
"statisticType": "sum",
"onStatisticField": "GENDER",
"outStatisticFieldName": "PopulationByGender"
},
{
"statisticType": "avg",
"onStatisticField": "INCOME",
"outStatisticFieldName": "AverageIncome"
}
]
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||