ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [60/66] [abbrv] ignite git commit: ignite-950-new - Fixing binary query example.
Date Thu, 05 Nov 2015 03:28:52 GMT
ignite-950-new - Fixing binary query example.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/4dbace44
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/4dbace44
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/4dbace44

Branch: refs/heads/ignite-1753-1282
Commit: 4dbace443ea7d022de001a256b1c1e7373ceb51b
Parents: c7a96d0
Author: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Authored: Wed Nov 4 16:30:50 2015 +0300
Committer: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Committed: Wed Nov 4 16:30:50 2015 +0300

----------------------------------------------------------------------
 .../examples/binary/datagrid/CacheClientBinaryQueryExample.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/4dbace44/examples/src/main/java/org/apache/ignite/examples/binary/datagrid/CacheClientBinaryQueryExample.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java/org/apache/ignite/examples/binary/datagrid/CacheClientBinaryQueryExample.java
b/examples/src/main/java/org/apache/ignite/examples/binary/datagrid/CacheClientBinaryQueryExample.java
index aa4d66b..c93848c 100644
--- a/examples/src/main/java/org/apache/ignite/examples/binary/datagrid/CacheClientBinaryQueryExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/binary/datagrid/CacheClientBinaryQueryExample.java
@@ -139,15 +139,16 @@ public class CacheClientBinaryQueryExample {
         fields.put("salary", Long.class.getName());
         fields.put("address.zip", Integer.class.getName());
         fields.put("organizationId", Integer.class.getName());
+        fields.put("address.street", Integer.class.getName());
 
         employeeEntity.setFields(fields);
 
         employeeEntity.setIndexes(Arrays.asList(
             new QueryIndex("name"),
             new QueryIndex("salary"),
-            new QueryIndex("address.zip"),
+            new QueryIndex("zip"),
             new QueryIndex("organizationId"),
-            new QueryIndex("address.street", QueryIndexType.FULLTEXT)
+            new QueryIndex("street", QueryIndexType.FULLTEXT)
         ));
 
         return employeeEntity;


Mime
View raw message