public class MinVisitor extends Object implements FeatureCalc, FeatureAttributeVisitor
| Modifier and Type | Class and Description |
|---|---|
static class |
MinVisitor.MinResult |
| Constructor and Description |
|---|
MinVisitor(Expression expr) |
MinVisitor(int attributeTypeIndex,
SimpleFeatureType type) |
MinVisitor(String attributeTypeName) |
MinVisitor(String attrName,
SimpleFeatureType type) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
getExpression() |
List<Expression> |
getExpressions()
List of expressions used by visitor.
|
Comparable |
getMin()
Get the min value.
|
CalcResult |
getResult()
Returns the result of the calculation as a handy object which can be merged and modified.
|
Optional<List<Class>> |
getResultType(List<Class> inputTypes)
Returns the expected output type given the input type.
|
void |
init(SimpleFeatureCollection collection) |
void |
reset() |
void |
setValue(Object result)
Overwrites the result stored by the visitor.
|
void |
visit(Feature feature)
Visit the provided feature.
|
void |
visit(SimpleFeature feature)
Visitor function, which looks at each feature and finds the minimum.
|
public MinVisitor(String attributeTypeName)
public MinVisitor(int attributeTypeIndex,
SimpleFeatureType type)
throws IllegalFilterException
IllegalFilterExceptionpublic MinVisitor(String attrName, SimpleFeatureType type) throws IllegalFilterException
IllegalFilterExceptionpublic MinVisitor(Expression expr) throws IllegalFilterException
IllegalFilterExceptionpublic void init(SimpleFeatureCollection collection)
public List<Expression> getExpressions()
FeatureAttributeVisitorgetExpressions in interface FeatureAttributeVisitorpublic Optional<List<Class>> getResultType(List<Class> inputTypes)
FeatureAttributeVisitorgetResultType in interface FeatureAttributeVisitorinputTypes - The type of the input expressionspublic void visit(SimpleFeature feature)
feature - the feature to be visitedpublic void visit(Feature feature)
FeatureVisitorPlease consult the documentation for the FeatureCollection you are visiting to learn more - the provided feature may be invalid, or read only.
visit in interface FeatureVisitorpublic Comparable getMin()
public void reset()
public CalcResult getResult()
FeatureCalcgetResult in interface FeatureCalcpublic Expression getExpression()
public void setValue(Object result)
For 'min', the value stored is of type 'Comparable'.
Copyright © 1996–2021 Geotools. All rights reserved.