[
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 add new method to {{IgniteCache}} API:
{code}
public <T, R> QueryCursor<R> query(Query<T> qry, IgniteClosure<T, R>
transformer);
{code}
For {{SqlFieldsQuery}} we should throw {{UnsupportedOperationException}}.
was:
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
> Assignee: Sergi Vladykin
> Fix For: 1.6
>
>
> Need to add new method to {{IgniteCache}} API:
> {code}
> public <T, R> QueryCursor<R> query(Query<T> qry, IgniteClosure<T, R>
> transformer);
> {code}
> For {{SqlFieldsQuery}} we should throw {{UnsupportedOperationException}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)