Hello!
I understand your concern but REST does not support such use case out of
box.
You could try implementing your own *ConnectorMessageInterceptor* to read
additional params from request, put them to thread-local, get them from
thread-local in constructor.
But I think you will be served better
OK, May be I wasn't clear before. Lets say cache contains entries
1. Trade1-> TradeObject{field1 =2, other fields}
Trade2-> TradeObject{field1 =3, other fields}
Trade3-> TradeObject{field1 =2, other fields}
Now if I run scan query without filter, it will return above 3 entries.
But let
Hello!
You don't. It will be initialized from empty constructor.
Regards,
--
Ilya Kasnacheev
чт, 13 дек. 2018 г. в 16:43, begineer :
> Ok Even if i add default constructor, how do I pass parameters of this
> class
> to query ?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble
Ok Even if i add default constructor, how do I pass parameters of this class
to query ?
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Hello!
I guess your class should have default constructor. This means it has to
define its data statically or take it from some pre-defined location.
Relevant code snippet from QueryCommandHandler:
case SCAN:
IgniteBiPredicate pred = null;
if (req.className() != null)
pred = ins
Yes, Predicate class is public and implement appy(). But I am trying to
understand how to set the fields of the predicate class.
It has a constructor which takes two parameters
public TradeObjectPredicate(String tradeObjectField1, Set
tradeObjectField2List){
.
}
How to pass these values from
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 :
> Hi Guys,
> I have an ignite cac
Hi Guys,
I have an ignite cache of type 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=