public class GroupByVisitor extends Object implements FeatureCalc, FeatureAttributeVisitor
Modifier and Type | Class and Description |
---|---|
static class |
GroupByVisitor.GroupByRawResult
Helper class that should be used by optimizations to set the results.
|
static class |
GroupByVisitor.GroupByResult
This class implements the feature calculation result of the group by visitor.
|
Constructor and Description |
---|
GroupByVisitor(Aggregate aggregateVisitor,
Expression expression,
List<Expression> groupByAttributes,
ProgressListener progressListener) |
Modifier and Type | Method and Description |
---|---|
FeatureVisitor |
getAggregateVisitor() |
Expression |
getExpression() |
List<Expression> |
getExpressions()
List of expressions used by visitor.
|
List<Expression> |
getGroupByAttributes() |
CalcResult |
getResult()
This method computes and returns the group by visitor result.
|
void |
setValue(List<GroupByVisitor.GroupByRawResult> value)
Methods that allow optimizations to directly set the group by visitor result instead of
computing it visiting all the features.
|
void |
visit(Feature feature)
Visit the provided feature.
|
boolean |
wasOptimized() |
boolean |
wasVisited() |
public GroupByVisitor(Aggregate aggregateVisitor, Expression expression, List<Expression> groupByAttributes, ProgressListener progressListener)
public boolean wasOptimized()
public boolean wasVisited()
public CalcResult getResult()
getResult
in interface FeatureCalc
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 FeatureVisitor getAggregateVisitor()
public List<Expression> getGroupByAttributes()
public void setValue(List<GroupByVisitor.GroupByRawResult> value)
value
- the group by visitor resultpublic List<Expression> getExpressions()
FeatureAttributeVisitor
getExpressions
in interface FeatureAttributeVisitor
Copyright © 1996–2019 Geotools. All rights reserved.