You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Juan José Ramos Cassella (Jira)" <ji...@apache.org> on 2019/09/12 12:48:00 UTC

[jira] [Updated] (GEODE-7195) Add BeforeAggregates Callback in QueryObserver

     [ https://issues.apache.org/jira/browse/GEODE-7195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juan José Ramos Cassella updated GEODE-7195:
--------------------------------------------
    Labels: GeodeCommons  (was: )

> Add BeforeAggregates Callback in QueryObserver
> ----------------------------------------------
>
>                 Key: GEODE-7195
>                 URL: https://issues.apache.org/jira/browse/GEODE-7195
>             Project: Geode
>          Issue Type: Improvement
>          Components: querying
>            Reporter: Juan José Ramos Cassella
>            Priority: Major
>              Labels: GeodeCommons
>
> The interface is used by testing/debugging code to be notified of query events. We should add a new callback to be invoked *after* executing the query criteria but *before* applying the aggregate functions and group by clauses:
> {code:title=CompiledGroupBySelect.java|borderStyle=solid}
> @Override
> public SelectResults evaluate(ExecutionContext context) throws FunctionDomainException, TypeMismatchException, NameResolutionException, QueryInvocationTargetException {
>   SelectResults sr = super.evaluate(context);
>   // Invoke Listener Here!
>   return this.applyAggregateAndGroupBy(sr, context); 
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)