You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Valentin Kulichenko (JIRA)" <ji...@apache.org> on 2016/08/09 03:20:20 UTC

[jira] [Commented] (IGNITE-2546) Need to introduce transformers to SCAN queries

    [ https://issues.apache.org/jira/browse/IGNITE-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15412860#comment-15412860 ] 

Valentin Kulichenko commented on IGNITE-2546:
---------------------------------------------

{{ignite-2546}} branch has the API change and tests. Need to provide implementation. Basically it requires only accurate refactoring, because the functionality already exists (left from legacy API). {{GridCacheQueryBean}} can be used as a starting point which contains the transformer and passes it where needed including different methods, request messages, etc.

> Need to introduce transformers to SCAN queries
> ----------------------------------------------
>
>                 Key: IGNITE-2546
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2546
>             Project: Ignite
>          Issue Type: Improvement
>          Components: cache
>            Reporter: Valentin Kulichenko
>            Assignee: Valentin Kulichenko
>            Priority: Critical
>             Fix For: 1.7
>
>
> Need to add new method to {{IgniteCache}} API:
> {code}
> public <T, R> QueryCursor<R> query(Query<T> qry, IgniteClosure<T, R> transformer);
> {code}
> For now this will be supported only for {{ScanQuery}}, for all others we should throw {{UnsupportedOperationException}} with proper message.
> Example and documentation should be also added.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)