public class SumAreaVisitor extends SumVisitor
SumVisitor.SumResult, SumVisitor.SumStrategy
Constructor and Description |
---|
SumAreaVisitor(Expression expr) |
SumAreaVisitor(int attributeTypeIndex,
SimpleFeatureType type) |
SumAreaVisitor(String attrName,
SimpleFeatureType type) |
Modifier and Type | Method and Description |
---|---|
Optional<List<Class>> |
getResultType(List<Class> inputTypes)
Returns the expected output type given the input type.
|
void |
visit(Feature feature)
Visit the provided feature.
|
void |
visit(SimpleFeature feature) |
getExpression, getExpressions, getResult, getSum, init, reset, setStrategy, setValue
public SumAreaVisitor(Expression expr) throws IllegalFilterException
IllegalFilterException
public SumAreaVisitor(int attributeTypeIndex, SimpleFeatureType type) throws IllegalFilterException
IllegalFilterException
public SumAreaVisitor(String attrName, SimpleFeatureType type) throws IllegalFilterException
IllegalFilterException
public void visit(SimpleFeature feature)
visit
in class SumVisitor
public void visit(Feature feature)
FeatureVisitor
Please consult the documentation for the FeatureCollection you are visiting to learn more - the provided feature may be invalid, or read only.
visit
in interface FeatureVisitor
visit
in class SumVisitor
public Optional<List<Class>> getResultType(List<Class> inputTypes)
FeatureAttributeVisitor
getResultType
in interface FeatureAttributeVisitor
getResultType
in class SumVisitor
inputTypes
- The type of the input expressionsCopyright © 1996–2022 Geotools. All rights reserved.