Package org.geotools.filter.function
Class AbstractQuantityClassificationFunction
- Object
-
- ExpressionAbstract
-
- DefaultExpression
-
- ClassificationFunction
-
- AbstractQuantityClassificationFunction
-
- All Implemented Interfaces:
Expression
,Function
,FunctionExpression
,Factory
- Direct Known Subclasses:
EqualAreaFunction
,QuantileFunction
public abstract class AbstractQuantityClassificationFunction extends ClassificationFunction
-
-
Field Summary
-
Fields inherited from class ClassificationFunction
LOGGER
-
Fields inherited from interface Expression
NIL
-
-
Constructor Summary
Constructors Constructor Description AbstractQuantityClassificationFunction(FunctionName name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Object
evaluate(Object feature)
Subclass should override, default implementation returns null.protected abstract FeatureCalc
getListVisitor()
Returns the list visitor for the specific implementation of "quantity" (e.g., count, area, ...).protected abstract boolean
percentages()
-
Methods inherited from class ClassificationFunction
accept, computeGroupByPercentages, computePercentage, decimalPlaces, fixRound, getClasses, getFallbackValue, getFunctionName, getImplementationHints, getName, getParameters, getProgressListener, round, setClasses, setFallbackValue, setParameters, setProgressListener, toString
-
Methods inherited from class DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
-
Methods inherited from class ExpressionAbstract
evaluate
-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface Expression
evaluate
-
-
-
-
Constructor Detail
-
AbstractQuantityClassificationFunction
public AbstractQuantityClassificationFunction(FunctionName name)
-
-
Method Detail
-
getListVisitor
protected abstract FeatureCalc getListVisitor()
Returns the list visitor for the specific implementation of "quantity" (e.g., count, area, ...). The visitor must return a "bins" structure matching {code}List[]{code}, where each array entry is a bin, and values inside the bin are sorted from lowest to highest
-
evaluate
public Object evaluate(Object feature)
Description copied from class:ExpressionAbstract
Subclass should override, default implementation returns null.- Specified by:
evaluate
in interfaceExpression
- Specified by:
evaluate
in classClassificationFunction
- Returns:
- default implementation returns null
-
percentages
protected abstract boolean percentages()
- Returns:
- true if percentages computation is enabled, false if not
-
-