Package org.geotools.process.vector
Class AggregateProcess.Results
Object
Results
- Enclosing class:
- AggregateProcess
The aggregate function results
-
Constructor Summary
ConstructorsConstructorDescriptionResults
(String aggregateAttribute, Set<AggregateProcess.AggregationFunction> functions, EnumMap<AggregateProcess.AggregationFunction, Number> results) Results
(String aggregateAttribute, Set<AggregateProcess.AggregationFunction> functions, List<String> groupByAttributes, List<Object[]> groupByResult, SimpleFeatureType schema) -
Method Summary
-
Constructor Details
-
Results
public Results(String aggregateAttribute, Set<AggregateProcess.AggregationFunction> functions, List<String> groupByAttributes, List<Object[]> groupByResult, SimpleFeatureType schema) -
Results
public Results(String aggregateAttribute, Set<AggregateProcess.AggregationFunction> functions, EnumMap<AggregateProcess.AggregationFunction, Number> results)
-
-
Method Details
-
getMin
-
getMax
-
getMedian
-
getAverage
-
getStandardDeviation
-
getSum
-
getArea
-
getCount
-
getAggregateAttribute
-
getFunctions
-
getGroupByAttributes
-
getGroupByResult
-
getResults
-
toFeatureCollection
Converts the results to aSimpleFeatureCollection
where each feature represents a group and contains the aggregated values as attributes. If the result is not from a grouping, no feature collection will be returned (null).- Returns:
- a
SimpleFeatureCollection
representing the aggregation results
-