Return-Path: X-Original-To: apmail-ignite-user-archive@minotaur.apache.org Delivered-To: apmail-ignite-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8F868181B6 for ; Wed, 27 Jan 2016 12:04:06 +0000 (UTC) Received: (qmail 63816 invoked by uid 500); 27 Jan 2016 12:03:55 -0000 Delivered-To: apmail-ignite-user-archive@ignite.apache.org Received: (qmail 63773 invoked by uid 500); 27 Jan 2016 12:03:55 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 63763 invoked by uid 99); 27 Jan 2016 12:03:55 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2016 12:03:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id CE023C0D32 for ; Wed, 27 Jan 2016 12:03:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=6.31 tests=[URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id FTs38-53zjH4 for ; Wed, 27 Jan 2016 12:03:46 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id 8F13F259A8 for ; Wed, 27 Jan 2016 12:03:45 +0000 (UTC) Received: from malf.nabble.com (unknown [162.253.133.59]) by mbob.nabble.com (Postfix) with ESMTP id ED1281F46FD6 for ; Wed, 27 Jan 2016 03:59:22 -0800 (PST) Date: Wed, 27 Jan 2016 03:52:32 -0800 (PST) From: Andrey Nestrogaev To: user@ignite.apache.org Message-ID: <1453895552007-2740.post@n6.nabble.com> In-Reply-To: <56A8AF43.4090109@gridgain.com> References: <1453887597854-2735.post@n6.nabble.com> <1453890424873-2737.post@n6.nabble.com> <56A8AF43.4090109@gridgain.com> Subject: Re: "Read-through" implementation for sql query MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Denis, Ok, lets see example from doc for ScanQuery: IgniteCache 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.