|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.feature.visitor.MaxVisitor
public class MaxVisitor
Calculates the maximum value of an attribute.
Nested Class Summary | |
---|---|
static class |
MaxVisitor.MaxResult
|
Constructor Summary | |
---|---|
MaxVisitor(org.opengis.filter.expression.Expression expr)
|
|
MaxVisitor(int attributeTypeIndex,
org.opengis.feature.simple.SimpleFeatureType type)
|
|
MaxVisitor(java.lang.String attributeTypeName)
|
|
MaxVisitor(java.lang.String attrName,
org.opengis.feature.simple.SimpleFeatureType type)
|
Method Summary | |
---|---|
org.opengis.filter.expression.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 |
init(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection)
|
void |
reset()
|
void |
setValue(java.lang.Object result)
Overwrites the result stored by the visitor. |
void |
visit(org.opengis.feature.Feature feature)
|
void |
visit(org.opengis.feature.simple.SimpleFeature 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(java.lang.String attributeTypeName)
public MaxVisitor(int attributeTypeIndex, org.opengis.feature.simple.SimpleFeatureType type) throws IllegalFilterException
IllegalFilterException
public MaxVisitor(java.lang.String attrName, org.opengis.feature.simple.SimpleFeatureType type) throws IllegalFilterException
IllegalFilterException
public MaxVisitor(org.opengis.filter.expression.Expression expr) throws IllegalFilterException
IllegalFilterException
Method Detail |
---|
public void init(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection)
public void visit(org.opengis.feature.simple.SimpleFeature feature)
feature
- the feature to be visitedpublic void visit(org.opengis.feature.Feature feature)
visit
in interface org.opengis.feature.FeatureVisitor
public java.lang.Comparable getMax()
java.lang.IllegalStateException
- DOCUMENT ME!public int getNaNCount()
public int getNullCount()
public void reset()
public org.opengis.filter.expression.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 |