ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yzhda...@apache.org
Subject [17/21] incubator-ignite git commit: ignite-140 review
Date Tue, 03 Feb 2015 12:48:53 GMT
ignite-140 review


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

Branch: refs/heads/sprint-1
Commit: d6a8823224120e269b9210764c26a3daeceebb48
Parents: 3c7d787
Author: Yakov Zhdanov <yzhdanov@gridgain.com>
Authored: Mon Feb 2 22:44:00 2015 +0300
Committer: Yakov Zhdanov <yzhdanov@gridgain.com>
Committed: Mon Feb 2 22:44:00 2015 +0300

----------------------------------------------------------------------
 .../processors/query/h2/IgniteH2Indexing.java   | 21 ++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/d6a88232/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/IgniteH2Indexing.java
----------------------------------------------------------------------
diff --git a/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/IgniteH2Indexing.java
b/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/IgniteH2Indexing.java
index 718d271..cb774d0 100644
--- a/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/IgniteH2Indexing.java
+++ b/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/IgniteH2Indexing.java
@@ -1699,14 +1699,27 @@ public class IgniteH2Indexing implements GridQueryIndexing {
          * @param keyCol Key column.
          * @param valCol Value column.
          */
-        public SpatialIndex createH2SpatialIndex(Table tbl, String idxName,
-                                                        IndexColumn[] cols, int keyCol, int
valCol) {
+        private SpatialIndex createH2SpatialIndex(
+            Table tbl,
+            String idxName,
+            IndexColumn[] cols,
+            int keyCol,
+            int valCol
+        ) {
             String className = "org.apache.ignite.internal.processors.query.h2.opt.GridH2SpatialIndex";
+
             try {
                 Class<?> cls = Class.forName(className);
 
-                Constructor<?> ctor = cls.getConstructor(Table.class, String.class,
-                        IndexColumn[].class, int.class, int.class);
+                Constructor<?> ctor = cls.getConstructor(
+                    Table.class,
+                    String.class,
+                    IndexColumn[].class,
+                    int.class,
+                    int.class);
+
+                if (!ctor.isAccessible())
+                    ctor.setAccessible(true);
 
                 return (SpatialIndex)ctor.newInstance(tbl, idxName, cols, keyCol, valCol);
             }


Mime
View raw message