Package org.geotools.process.vector
Class AggregateProcess.Results
- Object
-
- Results
-
- Enclosing class:
- AggregateProcess
public static final class AggregateProcess.Results extends Object
The aggregate function results
-
-
Constructor Summary
Constructors Constructor Description Results(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAggregateAttribute()DoublegetArea()DoublegetAverage()LonggetCount()Set<AggregateProcess.AggregationFunction>getFunctions()List<String>getGroupByAttributes()List<Object[]>getGroupByResult()DoublegetMax()DoublegetMedian()DoublegetMin()EnumMap<AggregateProcess.AggregationFunction,Number>getResults()DoublegetStandardDeviation()DoublegetSum()SimpleFeatureCollectiontoFeatureCollection()Converts the results to aSimpleFeatureCollectionwhere each feature represents a group and contains the aggregated values as attributes.
-
-
-
Constructor Detail
-
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 Detail
-
getMin
public Double getMin()
-
getMax
public Double getMax()
-
getMedian
public Double getMedian()
-
getAverage
public Double getAverage()
-
getStandardDeviation
public Double getStandardDeviation()
-
getSum
public Double getSum()
-
getArea
public Double getArea()
-
getCount
public Long getCount()
-
getAggregateAttribute
public String getAggregateAttribute()
-
getFunctions
public Set<AggregateProcess.AggregationFunction> getFunctions()
-
getResults
public EnumMap<AggregateProcess.AggregationFunction,Number> getResults()
-
toFeatureCollection
public SimpleFeatureCollection toFeatureCollection()
Converts the results to aSimpleFeatureCollectionwhere 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
SimpleFeatureCollectionrepresenting the aggregation results
-
-