|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectMinVisitor
public class MinVisitor
Calculates the minimum value of an attribute.
modules/library/main (gt-main.jar)
Nested Class Summary | |
---|---|
static class |
MinVisitor.MinResult
|
Constructor Summary | |
---|---|
MinVisitor(Expression expr)
|
|
MinVisitor(int attributeTypeIndex,
SimpleFeatureType type)
|
|
MinVisitor(String attributeTypeName)
|
|
MinVisitor(String attrName,
SimpleFeatureType type)
|
Method Summary | |
---|---|
Expression |
getExpression()
|
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(FeatureCollection<SimpleFeatureType,SimpleFeature> collection)
|
void |
reset()
|
void |
setValue(Object result)
Overwrites the result stored by the visitor. |
void |
visit(Feature feature)
|
void |
visit(SimpleFeature feature)
Visitor function, which looks at each feature and finds the minimum. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
Method Detail |
---|
public void init(FeatureCollection<SimpleFeatureType,SimpleFeature> collection)
public void visit(SimpleFeature feature)
feature
- the feature to be visitedpublic void visit(Feature feature)
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)
result
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |