|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.feature.visitor.MaxVisitor
Calculates the maximum value of an attribute.
Nested Class Summary | |
static class |
MaxVisitor.MaxResult
|
Constructor Summary | |
MaxVisitor(Expression expr)
|
|
MaxVisitor(int attributeTypeIndex,
FeatureType type)
|
|
MaxVisitor(java.lang.String attrName,
FeatureType type)
|
Method Summary | |
Expression |
getExpression()
|
java.lang.Comparable |
getMax()
Get the max value. |
int |
getNaNCount()
|
int |
getNullCount()
|
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 maximum. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MaxVisitor(int attributeTypeIndex, FeatureType type) throws IllegalFilterException
public MaxVisitor(java.lang.String attrName, FeatureType type) throws IllegalFilterException
public MaxVisitor(Expression expr) throws IllegalFilterException
Method Detail |
public void visit(Feature feature)
visit
in interface FeatureVisitor
feature
- the feature to be visitedpublic java.lang.Comparable getMax()
java.lang.IllegalStateException
- DOCUMENT ME!public int getNaNCount()
public int getNullCount()
public void reset()
public Expression getExpression()
public CalcResult getResult()
FeatureCalc
getResult
in interface FeatureCalc
public void setValue(java.lang.Object result)
result
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |