Package org.geotools.feature.visitor
Class UniqueCountVisitor
Object
UniqueVisitor
UniqueCountVisitor
- All Implemented Interfaces:
FeatureVisitor
,FeatureAttributeVisitor
,FeatureCalc
,LimitingVisitor
Determines the number of unique features in the collection on the basis of the specified feature attribute.
-
Nested Class Summary
Nested classes/interfaces inherited from class UniqueVisitor
UniqueVisitor.UniqueResult
-
Constructor Summary
ConstructorsConstructorDescriptionUniqueCountVisitor
(int attributeTypeIndex, SimpleFeatureType type) UniqueCountVisitor
(String attributeTypeName) UniqueCountVisitor
(String attrName, SimpleFeatureType type) UniqueCountVisitor
(Expression expr) -
Method Summary
Modifier and TypeMethodDescriptionReturns the result of the calculation as a handy object which can be merged and modified.void
Methods inherited from class UniqueVisitor
getAttrNames, getExpression, getExpressions, getMaxFeatures, getResultType, getStartIndex, getUnique, hasLimits, init, isPreserveOrder, reset, setMaxFeatures, setPreserveOrder, setStartIndex, setValue, visit, visit
-
Constructor Details
-
UniqueCountVisitor
-
UniqueCountVisitor
public UniqueCountVisitor(int attributeTypeIndex, SimpleFeatureType type) throws IllegalFilterException - Throws:
IllegalFilterException
-
UniqueCountVisitor
- Throws:
IllegalFilterException
-
UniqueCountVisitor
-
-
Method Details
-
setValue
-
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 interfaceFeatureCalc
- Overrides:
getResult
in classUniqueVisitor
- Returns:
- the results of the calculation
-