Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E913E172DA for ; Wed, 1 Apr 2015 10:02:16 +0000 (UTC) Received: (qmail 27335 invoked by uid 500); 1 Apr 2015 10:02:16 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 27302 invoked by uid 500); 1 Apr 2015 10:02:16 -0000 Mailing-List: contact commits-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list commits@ignite.incubator.apache.org Received: (qmail 27293 invoked by uid 99); 1 Apr 2015 10:02:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2015 10:02:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 01 Apr 2015 10:01:42 +0000 Received: (qmail 23452 invoked by uid 99); 1 Apr 2015 10:01:33 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2015 10:01:33 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id BFE5AE2F40; Wed, 1 Apr 2015 10:01:32 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sboikov@apache.org To: commits@ignite.incubator.apache.org Date: Wed, 01 Apr 2015 10:02:19 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [48/50] incubator-ignite git commit: ignite-198: change company name GridGain on ApacheIgnite at example X-Virus-Checked: Checked by ClamAV on apache.org ignite-198: change company name GridGain on ApacheIgnite at example Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/f7e32fb5 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/f7e32fb5 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/f7e32fb5 Branch: refs/heads/ignite-291 Commit: f7e32fb596a71f630237b8a06f846febbdbcf005 Parents: c6b3380 Author: Artem Shutak Authored: Wed Apr 1 11:58:16 2015 +0300 Committer: Artem Shutak Committed: Wed Apr 1 11:58:16 2015 +0300 ---------------------------------------------------------------------- .../ignite/examples/datagrid/CacheQueryExample.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/f7e32fb5/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java index 8fba9c7..6d6126d 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java @@ -167,9 +167,9 @@ public class CacheQueryExample { "and lower(org.name) = lower(?)"; // Execute queries for find employees for different organizations. - print("Following people are 'GridGain' employees: ", + print("Following people are 'ApacheIgnite' employees: ", cache.query(new SqlQuery, Person>(Person.class, joinSql). - setArgs("GridGain")).getAll()); + setArgs("ApacheIgnite")).getAll()); print("Following people are 'Other' employees: ", cache.query(new SqlQuery, Person>(Person.class, joinSql). @@ -200,7 +200,7 @@ public class CacheQueryExample { private static void sqlQueryWithAggregation() { IgniteCache, Person> cache = Ignition.ignite().cache(PERSON_CACHE); - // Calculate average of salary of all persons in GridGain. + // Calculate average of salary of all persons in ApacheIgnite. // Note that we also join on Organization cache as well. String sql = "select avg(salary) " + @@ -208,10 +208,10 @@ public class CacheQueryExample { "where Person.orgId = org.id " + "and lower(org.name) = lower(?)"; - QueryCursor> cursor = cache.query(new SqlFieldsQuery(sql).setArgs("GridGain")); + QueryCursor> cursor = cache.query(new SqlFieldsQuery(sql).setArgs("ApacheIgnite")); // Calculate average salary for a specific organization. - print("Average salary for 'GridGain' employees: ", cursor.getAll()); + print("Average salary for 'ApacheIgnite' employees: ", cursor.getAll()); } /** @@ -261,7 +261,7 @@ public class CacheQueryExample { IgniteCache orgCache = Ignition.ignite().cache(ORG_CACHE); // Organizations. - Organization org1 = new Organization("GridGain"); + Organization org1 = new Organization("ApacheIgnite"); Organization org2 = new Organization("Other"); orgCache.put(org1.id, org1);