You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2015/11/05 04:28:52 UTC
[60/66] [abbrv] ignite git commit: ignite-950-new - Fixing binary
query example.
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 <al...@gmail.com>
Authored: Wed Nov 4 16:30:50 2015 +0300
Committer: Alexey Goncharuk <al...@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;