org.geotools.feature.visitor
Class UniqueVisitor
java.lang.Object
org.geotools.feature.visitor.UniqueVisitor
- All Implemented Interfaces:
- FeatureCalc, FeatureVisitor
- public class UniqueVisitor
- extends java.lang.Object
- implements FeatureCalc
Generates a list of unique values from a collection
- Since:
- 2.2.M2
- Author:
- Cory Horner, Refractions
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UniqueVisitor
public UniqueVisitor(int attributeTypeIndex,
FeatureType type)
throws IllegalFilterException
UniqueVisitor
public UniqueVisitor(java.lang.String attrName,
FeatureType type)
throws IllegalFilterException
UniqueVisitor
public UniqueVisitor(Expression expr)
visit
public void visit(Feature feature)
- Specified by:
visit
in interface FeatureVisitor
getExpression
public Expression getExpression()
getUnique
public java.util.Set getUnique()
setValue
public void setValue(java.lang.Object newSet)
reset
public void reset()
getResult
public CalcResult getResult()
- Description copied from interface:
FeatureCalc
- Returns the result of the calculation as a handy object which can be merged and modified.
- Specified by:
getResult
in interface FeatureCalc
- Returns:
- the results of the calculation
Copyright © GeoTools. All Rights Reserved.