Package org.geotools.filter.function
Class Collection_AverageFunction
Object
ExpressionAbstract
DefaultExpression
FunctionExpressionImpl
Collection_AverageFunction
- All Implemented Interfaces:
Expression
,Function
,FunctionExpression
,Factory
Calculates the average value of an attribute for a given FeatureCollection and Expression.
- Since:
- 2.2M2
- Author:
- Cory Horner
-
Field Summary
FieldsFields inherited from class FunctionExpressionImpl
fallback, functionName, name, params
Fields inherited from interface Expression
NIL
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of Collection_AverageFunction -
Method Summary
Modifier and TypeMethodDescriptionSubclass should override, default implementation returns null.void
void
setParameters
(List<Expression> params) The provided arguments are evaulated with respect to the FeatureCollection.toString()
Return this function as a string.Methods inherited from class FunctionExpressionImpl
accept, equals, functionName, getExpression, getFallbackValue, getFunctionName, getImplementationHints, getName, getParameters, hashCode, setFallbackValue
Methods inherited from class DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
Methods inherited from class ExpressionAbstract
evaluate
Methods inherited from interface Expression
evaluate
-
Field Details
-
NAME
-
-
Constructor Details
-
Collection_AverageFunction
public Collection_AverageFunction()Creates a new instance of Collection_AverageFunction
-
-
Method Details
-
setParameters
The provided arguments are evaulated with respect to the FeatureCollection.For an aggregate function (like average) please use the WFS mandated XPath syntax to refer to featureMember content.
To refer to all 'X':
featureMember/asterisk/X
- Specified by:
setParameters
in interfaceFunctionExpression
- Overrides:
setParameters
in classFunctionExpressionImpl
- Parameters:
params
- function parameters
-
evaluate
Description copied from class:ExpressionAbstract
Subclass should override, default implementation returns null.- Specified by:
evaluate
in interfaceExpression
- Overrides:
evaluate
in classFunctionExpressionImpl
- Returns:
- default implementation returns null
-
setExpression
-
toString
Return this function as a string.- Overrides:
toString
in classFunctionExpressionImpl
- Returns:
- String representation of this average function.
-