ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alexey.goncharuk" <alexey.goncha...@gmail.com>
Subject Re: Closure method on a Cache Query
Date Tue, 09 Jun 2015 17:39:16 GMT
However, if you only need a remote transformer, not a remote reducer, custom
SQL function will also work. You can access keys and values in SQL fields
queries using built-in '_key' and '_val' names.

To use a custom SQL function, you need to declare a class which will contain
your custom logic

Next, you need to register this class in cache configuration using
setSqlFunctionClasses method.

After this you can access this function like any other built-in SQL
function, like this: "select pow(_val, 3) from Integer where _val > 5"

View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Closure-method-on-a-Cache-Query-tp456p458.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message