ArcadeExpression for summarizing aggregated data from an
AggregationFeatureReduction.
Feature reduction uses statistical methods to aggregate geoelements into logical groups based on their location. Attribute values
for each group (AggregateGeoElement) can be summarized for any numeric field using a specified AggregateStatisticType, such as
the average, maximum, or sum. A common workflow is to summarize aggregated groups with the number of geoelements they represent.
- Since:
- 200.3.0
-
Property Summary
PropertiesTypePropertyDescriptionA display name for the field that appears in aPopup, label, and other UI elements.A name that uniquely identifies the aggregate field within theAggregationFeatureReduction.getAggregateFields()collection.An Arcade expression that must evaluate to either a string or a number.An attribute name from the source dataset that contains numeric values to summarize.Defines the type of statistic for summarizing values returned fromstatisticFieldNameProperty()orstatisticExpressionProperty(). -
Constructor Summary
ConstructorsConstructorDescriptionAggregateField(String name, ArcadeExpression statisticExpression, AggregateStatisticType statisticType) Creates an AggregateField object.AggregateField(String name, String statisticFieldName, AggregateStatisticType statisticType) Creates an AggregateField object. -
Method Summary
Modifier and TypeMethodDescriptionA display name for the field that appears in aPopup, label, and other UI elements.getAlias()Gets the value of thealiasproperty.getName()Gets the value of thenameproperty.Gets the value of thestatisticExpressionproperty.Gets the value of thestatisticFieldNameproperty.Gets the value of thestatisticTypeproperty.A name that uniquely identifies the aggregate field within theAggregationFeatureReduction.getAggregateFields()collection.voidSets the value of thealiasproperty.voidSets the value of thenameproperty.voidsetStatisticExpression(ArcadeExpression statisticExpression) Sets the value of thestatisticExpressionproperty.voidsetStatisticFieldName(String statisticFieldName) Sets the value of thestatisticFieldNameproperty.voidsetStatisticType(AggregateStatisticType statisticType) Sets the value of thestatisticTypeproperty.An Arcade expression that must evaluate to either a string or a number.An attribute name from the source dataset that contains numeric values to summarize.Defines the type of statistic for summarizing values returned fromstatisticFieldNameProperty()orstatisticExpressionProperty().
-
Property Details
-
alias
A display name for the field that appears in aPopup, label, and other UI elements.Attempting to set the value to null will throw a NullPointerException exception.
- Since:
- 200.3.0
- See Also:
-
name
A name that uniquely identifies the aggregate field within theAggregationFeatureReduction.getAggregateFields()collection. Clusters will not draw correctly if this property is empty or does not match the field name used byAggregationFeatureReduction.rendererProperty().For example, an AggregateField that summarizes 'population' values might have the alias 'population_sum'.
Attempting to set the value to null will throw a NullPointerException exception.
- Since:
- 200.3.0
- See Also:
-
statisticExpression
An Arcade expression that must evaluate to either a string or a number.The expression is evaluated for each geoelement represented by the
AggregateGeoElementand the result of the expression is summarized using the given statistic type.- Since:
- 200.3.0
- See Also:
-
statisticFieldName
An attribute name from the source dataset that contains numeric values to summarize.Alternatively, an Arcade expression (
statisticExpressionProperty()) can be used instead of anAggregateStatisticType. If present, this value always takes precedence overAggregateField.statisticExpressionProperty().Attempting to set the value to null will throw a NullPointerException exception.
- Since:
- 200.3.0
- See Also:
-
statisticType
Defines the type of statistic for summarizing values returned fromstatisticFieldNameProperty()orstatisticExpressionProperty().Attempting to set the value to null will throw a NullPointerException exception.
- Since:
- 200.3.0
- See Also:
-
-
Constructor Details
-
AggregateField
public AggregateField(String name, ArcadeExpression statisticExpression, AggregateStatisticType statisticType) Creates an AggregateField object.- Parameters:
name- a name that uniquely identifies the aggregate field within theAggregationFeatureReduction.getAggregateFields()collectionstatisticExpression- an Arcade expression that evaluates to either a string or a numberstatisticType- type of statistic used to summarize numeric field for aggregated geoelements- Throws:
NullPointerException- if name is nullNullPointerException- if statisticExpression is nullNullPointerException- if statisticType is null- Since:
- 200.3.0
-
AggregateField
Creates an AggregateField object.- Parameters:
name- a name that uniquely identifies the aggregate field within theAggregationFeatureReduction.getAggregateFields()collectionstatisticFieldName- an attribute name from the source dataset that contains numeric values to summarizestatisticType- type of statistic used to summarize numeric field for aggregated geoelements- Throws:
NullPointerException- if name is nullNullPointerException- if statisticFieldName is nullNullPointerException- if statisticType is null- Since:
- 200.3.0
-
-
Method Details
-
aliasProperty
A display name for the field that appears in aPopup, label, and other UI elements.Attempting to set the value to null will throw a NullPointerException exception.
- Returns:
- the
aliasproperty - Since:
- 200.3.0
- See Also:
-
getAlias
Gets the value of thealiasproperty.- Property description:
- A display name for the field that appears in a
Popup, label, and other UI elements.Attempting to set the value to null will throw a NullPointerException exception.
- Returns:
- the value of the
aliasproperty - Since:
- 200.3.0
- See Also:
-
setAlias
Sets the value of thealiasproperty.- Property description:
- A display name for the field that appears in a
Popup, label, and other UI elements.Attempting to set the value to null will throw a NullPointerException exception.
- Parameters:
alias- the value for thealiasproperty- Since:
- 200.3.0
- See Also:
-
nameProperty
A name that uniquely identifies the aggregate field within theAggregationFeatureReduction.getAggregateFields()collection. Clusters will not draw correctly if this property is empty or does not match the field name used byAggregationFeatureReduction.rendererProperty().For example, an AggregateField that summarizes 'population' values might have the alias 'population_sum'.
Attempting to set the value to null will throw a NullPointerException exception.
- Returns:
- the
nameproperty - Since:
- 200.3.0
- See Also:
-
getName
Gets the value of thenameproperty.- Property description:
- A name that uniquely identifies the aggregate field within the
AggregationFeatureReduction.getAggregateFields()collection. Clusters will not draw correctly if this property is empty or does not match the field name used byAggregationFeatureReduction.rendererProperty().For example, an AggregateField that summarizes 'population' values might have the alias 'population_sum'.
Attempting to set the value to null will throw a NullPointerException exception.
- Returns:
- the value of the
nameproperty - Since:
- 200.3.0
- See Also:
-
setName
Sets the value of thenameproperty.- Property description:
- A name that uniquely identifies the aggregate field within the
AggregationFeatureReduction.getAggregateFields()collection. Clusters will not draw correctly if this property is empty or does not match the field name used byAggregationFeatureReduction.rendererProperty().For example, an AggregateField that summarizes 'population' values might have the alias 'population_sum'.
Attempting to set the value to null will throw a NullPointerException exception.
- Parameters:
name- the value for thenameproperty- Since:
- 200.3.0
- See Also:
-
statisticExpressionProperty
An Arcade expression that must evaluate to either a string or a number.The expression is evaluated for each geoelement represented by the
AggregateGeoElementand the result of the expression is summarized using the given statistic type.- Returns:
- the
statisticExpressionproperty - Since:
- 200.3.0
- See Also:
-
getStatisticExpression
Gets the value of thestatisticExpressionproperty.- Property description:
- An Arcade expression that must evaluate to either a string or a number.
The expression is evaluated for each geoelement represented by the
AggregateGeoElementand the result of the expression is summarized using the given statistic type. - Returns:
- the value of the
statisticExpressionproperty - Since:
- 200.3.0
- See Also:
-
setStatisticExpression
Sets the value of thestatisticExpressionproperty.- Property description:
- An Arcade expression that must evaluate to either a string or a number.
The expression is evaluated for each geoelement represented by the
AggregateGeoElementand the result of the expression is summarized using the given statistic type. - Parameters:
statisticExpression- the value for thestatisticExpressionproperty- Since:
- 200.3.0
- See Also:
-
statisticFieldNameProperty
An attribute name from the source dataset that contains numeric values to summarize.Alternatively, an Arcade expression (
statisticExpressionProperty()) can be used instead of anAggregateStatisticType. If present, this value always takes precedence overAggregateField.statisticExpressionProperty().Attempting to set the value to null will throw a NullPointerException exception.
- Returns:
- the
statisticFieldNameproperty - Since:
- 200.3.0
- See Also:
-
getStatisticFieldName
Gets the value of thestatisticFieldNameproperty.- Property description:
- An attribute name from the source dataset that contains numeric values to summarize.
Alternatively, an Arcade expression (
statisticExpressionProperty()) can be used instead of anAggregateStatisticType. If present, this value always takes precedence overAggregateField.statisticExpressionProperty().Attempting to set the value to null will throw a NullPointerException exception.
- Returns:
- the value of the
statisticFieldNameproperty - Since:
- 200.3.0
- See Also:
-
setStatisticFieldName
Sets the value of thestatisticFieldNameproperty.- Property description:
- An attribute name from the source dataset that contains numeric values to summarize.
Alternatively, an Arcade expression (
statisticExpressionProperty()) can be used instead of anAggregateStatisticType. If present, this value always takes precedence overAggregateField.statisticExpressionProperty().Attempting to set the value to null will throw a NullPointerException exception.
- Parameters:
statisticFieldName- the value for thestatisticFieldNameproperty- Since:
- 200.3.0
- See Also:
-
statisticTypeProperty
Defines the type of statistic for summarizing values returned fromstatisticFieldNameProperty()orstatisticExpressionProperty().Attempting to set the value to null will throw a NullPointerException exception.
- Returns:
- the
statisticTypeproperty - Since:
- 200.3.0
- See Also:
-
getStatisticType
Gets the value of thestatisticTypeproperty.- Property description:
- Defines the type of statistic for summarizing values returned from
statisticFieldNameProperty()orstatisticExpressionProperty().Attempting to set the value to null will throw a NullPointerException exception.
- Returns:
- the value of the
statisticTypeproperty - Since:
- 200.3.0
- See Also:
-
setStatisticType
Sets the value of thestatisticTypeproperty.- Property description:
- Defines the type of statistic for summarizing values returned from
statisticFieldNameProperty()orstatisticExpressionProperty().Attempting to set the value to null will throw a NullPointerException exception.
- Parameters:
statisticType- the value for thestatisticTypeproperty- Since:
- 200.3.0
- See Also:
-