I think it is Tom, each aggregate function is implemented internally as a "visitor" on a feature collection (yes I know patterns I am sorry). ContentFeatureSource checks to see if the visitor can be "handled", if so the JDBCDataStore is in change of sending off the SQL and packaging up the result. If not the java side "visitor" implementation is used.

Jody Garnett

On Wed, Aug 6, 2014 at 1:48 PM, Tom Kunicki <tom.kunicki@weather.com> wrote:
Is it possible to delegate aggregation functions to the backing PostgreSQL instance with the PosGIS JNDI datastore?  I am attempting to do aggregations on millions of points and would prefer this happens on the backend.  In particular with the "Collection_Sum" function using the GeoTools FeatureCollection/Function/Filter abstraction.  In stepping through the code I see this function being performed locally.


 Tom Kunicki    |    Software Engineer
w: 608 695 4251 e: tom.kunicki@weather.com

Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
GeoTools-GT2-Users mailing list