ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [06/50] [abbrv] incubator-ignite git commit: # ignite-330 Fixed examples.
Date Mon, 23 Mar 2015 14:29:55 GMT
# ignite-330 Fixed examples.


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

Branch: refs/heads/ignite-release-test-no-mod
Commit: 77dba0c2ba65a9ee981efced392ba32a7a70324c
Parents: 675bd3b
Author: anovikov <anovikov@gridgain.com>
Authored: Mon Mar 23 14:22:32 2015 +0700
Committer: anovikov <anovikov@gridgain.com>
Committed: Mon Mar 23 14:22:32 2015 +0700

----------------------------------------------------------------------
 .../ignite/examples/datagrid/store/auto/CacheConfig.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/77dba0c2/examples/src/main/java/org/apache/ignite/examples/datagrid/store/auto/CacheConfig.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/store/auto/CacheConfig.java
b/examples/src/main/java/org/apache/ignite/examples/datagrid/store/auto/CacheConfig.java
index 1e26188..935e9c6 100644
--- a/examples/src/main/java/org/apache/ignite/examples/datagrid/store/auto/CacheConfig.java
+++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/store/auto/CacheConfig.java
@@ -22,11 +22,11 @@ import org.apache.ignite.cache.store.*;
 import org.apache.ignite.cache.store.jdbc.*;
 import org.apache.ignite.configuration.*;
 import org.apache.ignite.examples.datagrid.store.*;
-import org.apache.ignite.internal.util.typedef.*;
 import org.h2.jdbcx.*;
 
 import javax.cache.configuration.*;
 import java.sql.*;
+import java.util.*;
 
 import static org.apache.ignite.cache.CacheAtomicityMode.*;
 
@@ -60,15 +60,15 @@ public class CacheConfig {
         tm.setKeyType("java.lang.Long");
         tm.setValueType("org.apache.ignite.examples.datagrid.store.Person");
 
-        tm.setKeyFields(F.asList(new CacheTypeFieldMetadata("ID", Types.BIGINT, "id", Long.class)));
+        tm.setKeyFields(Collections.singletonList(new CacheTypeFieldMetadata("ID", Types.BIGINT,
"id", Long.class)));
 
-        tm.setValueFields(F.asList(
+        tm.setValueFields(Arrays.asList(
             new CacheTypeFieldMetadata("ID", Types.BIGINT, "id", long.class),
             new CacheTypeFieldMetadata("FIRST_NAME", Types.VARCHAR, "firstName", String.class),
             new CacheTypeFieldMetadata("LAST_NAME", Types.VARCHAR, "lastName", String.class)
         ));
 
-        cfg.setTypeMetadata(F.asList(tm));
+        cfg.setTypeMetadata(Collections.singletonList(tm));
 
         cfg.setWriteBehindEnabled(true);
 


Mime
View raw message