Package org.geotools.feature.visitor
Class GroupByVisitorBuilder
- Object
-
- GroupByVisitorBuilder
-
public final class GroupByVisitorBuilder extends Object
Helper class to help building a valid group by visitor.A valid group by visitor requires an aggregate attribute, an aggregate visitor and at least one group by attribute.
-
-
Constructor Summary
Constructors Constructor Description GroupByVisitorBuilder()
-
Method Summary
-
-
-
Method Detail
-
withAggregateAttribute
public GroupByVisitorBuilder withAggregateAttribute(int attributeTypeIndex, SimpleFeatureType type)
-
withAggregateAttribute
public GroupByVisitorBuilder withAggregateAttribute(String attributeName, SimpleFeatureType type)
-
withAggregateAttribute
public GroupByVisitorBuilder withAggregateAttribute(Expression aggregateAttribute)
-
withAggregateVisitor
public GroupByVisitorBuilder withAggregateVisitor(Aggregate aggregateVisitor)
-
withAggregateVisitor
public GroupByVisitorBuilder withAggregateVisitor(String aggregateVisitorName)
-
withGroupByAttribute
public GroupByVisitorBuilder withGroupByAttribute(int attributeTypeIndex, SimpleFeatureType type)
-
withGroupByAttribute
public GroupByVisitorBuilder withGroupByAttribute(String attributeName, SimpleFeatureType type)
-
withGroupByAttributes
public GroupByVisitorBuilder withGroupByAttributes(Collection<String> attributesNames, SimpleFeatureType type)
-
withGroupByAttribute
public GroupByVisitorBuilder withGroupByAttribute(Expression groupByAttribute)
-
withProgressListener
public GroupByVisitorBuilder withProgressListener(ProgressListener progressListener)
-
build
public GroupByVisitor build()
Create a group by visitor checking that all mandatory values are present.- Returns:
- a new group by visitor
-
-