[
https://issues.apache.org/jira/browse/IGNITE-2177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15071887#comment-15071887
]
Sergi Vladykin commented on IGNITE-2177:
----------------------------------------
I think the code should look like the following:
We should have two interfaces:
{code}
interface DistributedSqlAggregate {
String getMapAlias();
String getReduceAlias();
String getLocalAlias();
SqlAggregate createMapAggregate();
SqlAggregate createReduceAggregate();
SqlAggregate createLocalAggregate();
}
interface SqlAggregate {
// This ineterface have to reflect
https://github.com/h2database/h2database/blob/master/h2/src/main/org/h2/api/AggregateFunction.java
}
// And method on cache configuration
ccfg.setSqlAggregates(Class... clss);
{code}
> User defined aggregate functions for SQL
> ----------------------------------------
>
> Key: IGNITE-2177
> URL: https://issues.apache.org/jira/browse/IGNITE-2177
> Project: Ignite
> Issue Type: Wish
> Reporter: Sergi Vladykin
> Fix For: 1.6
>
>
> Need to design some factory like abstraction for creating map part and reduce
> part of the aggregate.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)