ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Nestrogaev <a.nestrog...@flexsoft.com>
Subject Re: "Read-through" implementation for sql query
Date Wed, 27 Jan 2016 11:52:32 GMT
Hi Denis,

Ok, lets see example from doc for ScanQuery:

IgniteCache<Long, Person> cache = ignite.cache("mycache");
// Find only persons earning more than 1,000.
try (QueryCursor cursor = cache.query(new *ScanQuery*((k, p) ->
p.getSalary() > 1000)) {
  for (Person p : cursor)
    System.out.println(p.toString());
}

What happens if the cache is initially empty and I run this code twice?




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Read-through-implementation-for-sql-query-tp2735p2740.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message