|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectMaxVisitor
public class MaxVisitor
Calculates the maximum value of an attribute.
| Nested Class Summary | |
|---|---|
static class |
MaxVisitor.MaxResult
|
| Constructor Summary | |
|---|---|
MaxVisitor(Expression expr)
|
|
MaxVisitor(int attributeTypeIndex,
SimpleFeatureType type)
|
|
MaxVisitor(String attributeTypeName)
|
|
MaxVisitor(String attrName,
SimpleFeatureType type)
|
|
| Method Summary | |
|---|---|
Expression |
getExpression()
|
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(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 maximum. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MaxVisitor(String attributeTypeName)
public MaxVisitor(int attributeTypeIndex,
SimpleFeatureType type)
throws IllegalFilterException
IllegalFilterException
public MaxVisitor(String attrName,
SimpleFeatureType type)
throws IllegalFilterException
IllegalFilterException
public MaxVisitor(Expression expr)
throws IllegalFilterException
IllegalFilterException| Method Detail |
|---|
public void init(SimpleFeatureCollection collection)
public 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 getMax()
IllegalStateException - DOCUMENT ME!public int getNaNCount()
public int getNullCount()
public void reset()
public Expression getExpression()
public CalcResult getResult()
FeatureCalc
getResult in interface FeatureCalcpublic void setValue(Object result)
result -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||