Add native support for average and stddev aggregate functions in jdbc data 
stores
---------------------------------------------------------------------------------

                 Key: GEOT-3322
                 URL: http://jira.codehaus.org/browse/GEOT-3322
             Project: GeoTools
          Issue Type: Improvement
          Components: data jdbc, data jdbc-ng
    Affects Versions: 2.7-M3
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 2.7-M4


The SQLDialect at the moment registers the following functions:

public void registerAggregateFunctions(Map<Class<? extends 
FeatureVisitor>,String> aggregates) {
        //register the well known
        aggregates.put( CountVisitor.class, "count" );
        aggregates.put( MinVisitor.class, "min");
        aggregates.put( MaxVisitor.class, "max");
        aggregates.put( SumVisitor.class, "sum");
    }

I'm a bit suprised average and standard deviation are not there?
Afaik all databases support both "avg" and "stddev".

Is there any  that does not? I'd like to add native support for those too, 
eventually 
allowing subclasses to restrict the list if necessary (should we ever encounter 
a
database that does not support them).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to