public class UniqueVisitor extends Object implements FeatureCalc, FeatureAttributeVisitor, LimitingVisitor
Modifier and Type | Class and Description |
---|---|
static class |
UniqueVisitor.UniqueResult |
Constructor and Description |
---|
UniqueVisitor(Expression expr) |
UniqueVisitor(int attributeTypeIndex,
SimpleFeatureType type) |
UniqueVisitor(String attributeTypeName) |
UniqueVisitor(String attrName,
SimpleFeatureType type) |
Modifier and Type | Method and Description |
---|---|
Expression |
getExpression() |
List<Expression> |
getExpressions()
List of expressions used by visitor.
|
int |
getMaxFeatures()
Returns maxFeatures (max # of elements to return)
|
CalcResult |
getResult()
Returns the result of the calculation as a handy object which can be merged and modified.
|
int |
getStartIndex()
Returns startIndex (first element to return)
|
Set |
getUnique() |
boolean |
hasLimits()
Checks if the visitor has limits.
|
void |
init(SimpleFeatureCollection collection) |
boolean |
isPreserveOrder()
True if the unique visitor must be order preserving
|
void |
reset() |
void |
setMaxFeatures(int maxFeatures) |
void |
setPreserveOrder(boolean preserveOrder) |
void |
setStartIndex(int startIndex) |
void |
setValue(Object newSet) |
void |
visit(Feature feature)
Visit the provided feature.
|
void |
visit(SimpleFeature feature) |
public UniqueVisitor(String attributeTypeName)
public UniqueVisitor(int attributeTypeIndex, SimpleFeatureType type) throws IllegalFilterException
IllegalFilterException
public UniqueVisitor(String attrName, SimpleFeatureType type) throws IllegalFilterException
IllegalFilterException
public UniqueVisitor(Expression expr)
public void init(SimpleFeatureCollection collection)
public void setStartIndex(int startIndex)
public void setMaxFeatures(int maxFeatures)
public void setPreserveOrder(boolean preserveOrder)
public int getStartIndex()
LimitingVisitor
getStartIndex
in interface LimitingVisitor
public int getMaxFeatures()
LimitingVisitor
getMaxFeatures
in interface LimitingVisitor
public List<Expression> getExpressions()
FeatureAttributeVisitor
getExpressions
in interface FeatureAttributeVisitor
public void visit(SimpleFeature feature)
public void visit(Feature feature)
FeatureVisitor
Please consult the documentation for the FeatureCollection you are visiting to learn more - the provided feature may be invalid, or read only.
visit
in interface FeatureVisitor
public Expression getExpression()
public Set getUnique()
public void setValue(Object newSet)
public void reset()
public CalcResult getResult()
FeatureCalc
getResult
in interface FeatureCalc
public boolean hasLimits()
LimitingVisitor
hasLimits
in interface LimitingVisitor
public boolean isPreserveOrder()
Copyright © 1996–2019 Geotools. All rights reserved.