You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2015/04/01 11:12:55 UTC
[48/50] incubator-ignite git commit: ignite-198: change company name
GridGain on ApacheIgnite at example
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-gg-9950
Commit: f7e32fb596a71f630237b8a06f846febbdbcf005
Parents: c6b3380
Author: Artem Shutak <as...@gridgain.com>
Authored: Wed Apr 1 11:58:16 2015 +0300
Committer: Artem Shutak <as...@gridgain.com>
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<AffinityKey<UUID>, Person>(Person.class, joinSql).
- setArgs("GridGain")).getAll());
+ setArgs("ApacheIgnite")).getAll());
print("Following people are 'Other' employees: ",
cache.query(new SqlQuery<AffinityKey<UUID>, Person>(Person.class, joinSql).
@@ -200,7 +200,7 @@ public class CacheQueryExample {
private static void sqlQueryWithAggregation() {
IgniteCache<AffinityKey<UUID>, 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<List<?>> cursor = cache.query(new SqlFieldsQuery(sql).setArgs("GridGain"));
+ QueryCursor<List<?>> 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<UUID, Organization> 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);