Hi

I am having trouble getting ScanQuery to work with a filter from thin client.

I have attached a working minimal reproduction program (IntelliJ project zip 
export) , the ignite config file and the  part of the ignite logfile after 
running the query. The code is fashioned along the example in the documentation.

Here is the querying part of the code:

…
IgniteBiPredicate<String, Person> filter =
        (key, p) -> p.getName().equals(srchName);

try (QueryCursor<Cache.Entry<String, Person>> scnCursor =
             personCache.query(new ScanQuery<>(filter))) {
    scnCursor.forEach(
            entry -> System.out.println(entry.getKey() +
                    " " + entry.getValue()));
} catch (Exception e) {
    System.out.println("Scan query failed " + e.getMessage());
}

…

Any help in pointing out the problem will be greatly appreciated.


---------------------
Regards,
Prasad Kommoju

Attachment: ScanQueryTest.java
Description: ScanQueryTest.java

Attachment: default-config.xml
Description: default-config.xml

Attachment: ignite-scanquery.log
Description: ignite-scanquery.log

Reply via email to