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

Valentin Kulichenko updated IGNITE-2546:
----------------------------------------
    Description: 
Need to introduce new query type:

{code}
public final class ScanTransformQuery<K, V, R> extends Query<R> {
    private final IgniteBiPredicate<K, V> filter;
    private final int part;
    private final IgniteClosure<Cache.Entry<K, V>, R> transformer;
    
    // ... Constructors, getters, setters, etc. Use ScanQuery class as a 
template.
}
{code}

Transformer is mandatory. If it's not set, the exception should be thrown 
suggesting to use {{ScanQuery}} instead.

> Need to introduce transformers to SCAN queries
> ----------------------------------------------
>
>                 Key: IGNITE-2546
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2546
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Valentin Kulichenko
>             Fix For: 1.6
>
>
> Need to introduce new query type:
> {code}
> public final class ScanTransformQuery<K, V, R> extends Query<R> {
>     private final IgniteBiPredicate<K, V> filter;
>     private final int part;
>     private final IgniteClosure<Cache.Entry<K, V>, R> transformer;
>     
>     // ... Constructors, getters, setters, etc. Use ScanQuery class as a 
> template.
> }
> {code}
> Transformer is mandatory. If it's not set, the exception should be thrown 
> suggesting to use {{ScanQuery}} instead.



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

Reply via email to