Ah! I make silly mistakes too often. I will give it a try. I will also make a separate class instead of an inner class. Thanks!
-- Thomas Isaksen ________________________________ From: ezhuravlev <[email protected]> Sent: Friday, January 26, 2018 3:48:56 PM To: [email protected] Subject: Re: ScanQuery with predicate always returns empty result. 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 Evgenii -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/
