|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.feature.visitor.MinVisitor
Calculates the minimum value of an attribute.
Nested Class Summary | |
static class |
MinVisitor.MinResult
|
Constructor Summary | |
MinVisitor(Expression expr)
|
|
MinVisitor(int attributeTypeIndex,
FeatureType type)
|
|
MinVisitor(java.lang.String attrName,
FeatureType type)
|
Method Summary | |
Expression |
getExpression()
|
java.lang.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 |
reset()
|
void |
setValue(java.lang.Object result)
Overwrites the result stored by the visitor. |
void |
visit(Feature feature)
Visitor function, which looks at each feature and finds the minimum. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MinVisitor(int attributeTypeIndex, FeatureType type) throws IllegalFilterException
public MinVisitor(java.lang.String attrName, FeatureType type) throws IllegalFilterException
public MinVisitor(Expression expr) throws IllegalFilterException
Method Detail |
public void visit(Feature feature)
visit
in interface FeatureVisitor
feature
- the feature to be visitedpublic java.lang.Comparable getMin()
java.lang.IllegalStateException
- DOCUMENT ME!public void reset()
public CalcResult getResult()
FeatureCalc
getResult
in interface FeatureCalc
public Expression getExpression()
public void setValue(java.lang.Object result)
result
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |