Hello!

Your example should be working all right. Note that the class should be
public (and not package private) and implementapply() method.

Do you get any specific errors when you try that?

Regards,
-- 
Ilya Kasnacheev


ср, 12 дек. 2018 г. в 18:15, begineer <[email protected]>:

> Hi Guys,
> I have an ignite cache of type <String, TradeObject>distributed over
> several
> nodes. I want to query its data using ignite REST APIS as mentioned
>
> https://apacheignite.readme.io/v2.6/docs/rest-api#sql-scan-query-execute
>
> I am able to query the cache without predicate and page size
> http://host:port/ignite?cmd=qryscanexe&pageSize=10&cacheName=myCacheName
>
> but I would like to do a bit more and add predicate to query. Something
> like
> this
>
> http://host:port
> /ignite?cmd=qryscanexe&pageSize=10&cacheName=Person&className=myprojectpackage.TradeObjectPredicate
>
> class TradeObjectPredicate implements IgniteBiPredicate<String,
> TradeObject>
> {
>         private final String tradeObjectField1;
>         private final Set<String> tradeObjectField2List;
> }
>
> How do i pass this predicate so that I can get matching results.
>
> Thanks in Advance
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to