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.
|
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
IllegalFilterException
public MinVisitor(String attrName, SimpleFeatureType type) throws IllegalFilterException
IllegalFilterException
public MinVisitor(Expression expr) throws IllegalFilterException
IllegalFilterException
public void init(SimpleFeatureCollection collection)
public List<Expression> getExpressions()
FeatureAttributeVisitor
getExpressions
in interface FeatureAttributeVisitor
public void visit(SimpleFeature feature)
feature
- the feature to be visitedpublic 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
public Comparable getMin()
IllegalStateException
- DOCUMENT ME!public void reset()
public CalcResult getResult()
FeatureCalc
getResult
in interface FeatureCalc
public Expression getExpression()
public void setValue(Object result)
For 'min', the value stored is of type 'Comparable'.
result
- Copyright © 1996–2019 Geotools. All rights reserved.