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 SummaryConstructors 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 SummaryAll 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- 
Resultspublic Results(String aggregateAttribute, Set<AggregateProcess.AggregationFunction> functions, List<String> groupByAttributes, List<Object[]> groupByResult, SimpleFeatureType schema) 
 - 
Resultspublic Results(String aggregateAttribute, Set<AggregateProcess.AggregationFunction> functions, EnumMap<AggregateProcess.AggregationFunction,Number> results) 
 
- 
 - 
Method Detail- 
getMinpublic Double getMin() 
 - 
getMaxpublic Double getMax() 
 - 
getMedianpublic Double getMedian() 
 - 
getAveragepublic Double getAverage() 
 - 
getStandardDeviationpublic Double getStandardDeviation() 
 - 
getSumpublic Double getSum() 
 - 
getAreapublic Double getArea() 
 - 
getCountpublic Long getCount() 
 - 
getAggregateAttributepublic String getAggregateAttribute() 
 - 
getFunctionspublic Set<AggregateProcess.AggregationFunction> getFunctions() 
 - 
getResultspublic EnumMap<AggregateProcess.AggregationFunction,Number> getResults() 
 - 
toFeatureCollectionpublic 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
 
 
- 
 
-