Package org.geotools.feature.visitor
Class GroupByVisitorBuilder
Object
GroupByVisitorBuilder
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 -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create a group by visitor checking that all mandatory values are present.withAggregateAttribute
(int attributeTypeIndex, SimpleFeatureType type) withAggregateAttribute
(String attributeName, SimpleFeatureType type) withAggregateAttribute
(Expression aggregateAttribute) withAggregateVisitor
(String aggregateVisitorName) withAggregateVisitor
(Aggregate aggregateVisitor) withGroupByAttribute
(int attributeTypeIndex, SimpleFeatureType type) withGroupByAttribute
(String attributeName, SimpleFeatureType type) withGroupByAttribute
(Expression groupByAttribute) withGroupByAttributes
(Collection<String> attributesNames, SimpleFeatureType type) withProgressListener
(ProgressListener progressListener)
-
Constructor Details
-
GroupByVisitorBuilder
public GroupByVisitorBuilder()
-
-
Method Details
-
withAggregateAttribute
-
withAggregateAttribute
-
withAggregateAttribute
-
withAggregateVisitor
-
withAggregateVisitor
-
withGroupByAttribute
-
withGroupByAttribute
-
withGroupByAttributes
public GroupByVisitorBuilder withGroupByAttributes(Collection<String> attributesNames, SimpleFeatureType type) -
withGroupByAttribute
-
withProgressListener
-
build
Create a group by visitor checking that all mandatory values are present.- Returns:
- a new group by visitor
-