ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ezhuravlev <e.zhuravlev...@gmail.com>
Subject Re: ScanQuery with predicate always returns empty result.
Date Fri, 26 Jan 2018 14:48:56 GMT
Hi, in case when you use:
ScanQuery<Long, BinaryObject> scan = new ScanQuery<>((key, value) -> {

                System.out.println(key + “ = “ + value);

                return true;

I think the problem is that you created ScanQuery<Long, BinaryObject> while
your cache is IgniteCache<String, String>. Scan query should be <String,
String> too.

In case of Inner class, it's trying to serialize your outer class, but it
faces some problems in this process. Here you can create separate class
instead of inner, it will help


Sent from: http://apache-ignite-users.70518.x6.nabble.com/

View raw message