Re: ScanQuery With BinaryObject

2017-04-07 Thread David Li
Hi Andrey, Your suggestion fixed my problem. Thank you. On Tue, Apr 4, 2017 at 1:08 AM, Andrey Mashenkov wrote: > Hi David, > > Scan query results are never cached. It looks like your IgniteBiPredicate > implementation is cached on server side. > Try to move this class to upper level or make it

Re: ScanQuery With BinaryObject

2017-04-05 Thread Andrey Mashenkov
t; >> >> > > > > Note that this actually doesn't matter if the class is >> available >> >> on >> >> > > > > server's local classpath. In this case it will be always used >> >> > > regardless >> >> >

Re: ScanQuery With BinaryObject

2017-04-03 Thread Andrey Mashenkov
Hi David, Scan query results are never cached. It looks like your IgniteBiPredicate implementation is cached on server side. Try to move this class to upper level or make it inner and make "prefix" configurable with class constructor. This should work. On Mon, Apr 3, 2017 at 9:24 AM, David Li wr

Re: ScanQuery With BinaryObject

2017-04-02 Thread David Li
Sorry, please ignore the previous email, it was sent by mistake. 1. I download apache-ignite-fabric-1.9.0-bin.zip, and unzip it. 2. In terminal, I start an ignite instance by *bin/ignite.sh examples/config/example-ignite.xml* 3. I create a Java application, source code as below: public static voi

Re: ScanQuery With BinaryObject

2017-04-02 Thread David Li
1. I download apache-ignite-fabric-1.9.0-bin.zip, and unzip it. 2. In terminal, I start an ignite instance by bin/ignite.sh examples/config/example-ignite.xml 3. I create a Java application, source code as below: public static void main(String[] args) { String ORG_CACHE = "org_cache_remote";

Re: ScanQuery With BinaryObject

2017-03-31 Thread Andrey Mashenkov
Hi David, Would you please share your code. On Fri, Mar 31, 2017 at 10:42 AM, David Li wrote: > It is weird. > > I run the cache query example, scan query works fine. > > I create my cache query code with a local started server node, scan query > works fine. > > I start a server node from termi

Re: ScanQuery With BinaryObject

2017-03-31 Thread David Li
It is weird. I run the cache query example, scan query works fine. I create my cache query code with a local started server node, scan query works fine. I start a server node from terminal, start a client node in my code and issue scan query, the first query after the server node is started work

Re: ScanQuery With BinaryObject

2017-03-30 Thread Andrey Mashenkov
Hi David, I've run your code and it works fine for me on ignite 1.7-1.9 versions and master branch. On Thu, Mar 30, 2017 at 12:19 PM, David Li wrote: > Hello, > > I am having a little issue with the ScanQuery for BinaryObject. > > Some code snippets > > IgniteCache cache = ignite.cache(CacheCon

ScanQuery With BinaryObject

2017-03-30 Thread David Li
Hello, I am having a little issue with the ScanQuery for BinaryObject. Some code snippets IgniteCache cache = ignite.cache(CacheConfig.CACHE_NAME); IgniteCache binaryCache = cache.withKeepBinary(); // scan query IgniteBiPredicate filter = new IgniteBiPredicate() { @Override public boole