ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject ignite git commit: ignite-sql-cache-stmt
Date Tue, 24 Nov 2015 10:20:55 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-sql-cache-stmt f5ea734bc -> a0a10fcae


ignite-sql-cache-stmt


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

Branch: refs/heads/ignite-sql-cache-stmt
Commit: a0a10fcae51daa327dd56a3142fea71cc6b72b20
Parents: f5ea734
Author: sboikov <sboikov@gridgain.com>
Authored: Tue Nov 24 13:20:26 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Tue Nov 24 13:20:26 2015 +0300

----------------------------------------------------------------------
 .../ignite/internal/processors/query/h2/IgniteH2Indexing.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/a0a10fca/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 3fbbe36..96409f6 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
@@ -101,6 +101,7 @@ import org.apache.ignite.internal.util.offheap.unsafe.GridUnsafeGuard;
 import org.apache.ignite.internal.util.offheap.unsafe.GridUnsafeMemory;
 import org.apache.ignite.internal.util.typedef.F;
 import org.apache.ignite.internal.util.typedef.T2;
+import org.apache.ignite.internal.util.typedef.T3;
 import org.apache.ignite.internal.util.typedef.internal.LT;
 import org.apache.ignite.internal.util.typedef.internal.S;
 import org.apache.ignite.internal.util.typedef.internal.SB;
@@ -283,7 +284,7 @@ public class IgniteH2Indexing implements GridQueryIndexing {
         };
 
     /** */
-    private final GridBoundedConcurrentLinkedHashMap<T2<String, String>, TwoStepCachedQuery>
twoStepCache =
+    private final GridBoundedConcurrentLinkedHashMap<T3<String, String, Boolean>,
TwoStepCachedQuery> twoStepCache =
         new GridBoundedConcurrentLinkedHashMap<>(TWO_STEP_QRY_CACHE_SIZE);
 
     /**
@@ -992,7 +993,7 @@ public class IgniteH2Indexing implements GridQueryIndexing {
         GridCacheTwoStepQuery twoStepQry;
         List<GridQueryFieldMetadata> meta;
 
-        final T2<String, String> cachedQryKey = new T2<>(space, sqlQry);
+        final T3<String, String, Boolean> cachedQryKey = new T3<>(space, sqlQry,
qry.isCollocated());
         TwoStepCachedQuery cachedQry = twoStepCache.get(cachedQryKey);
 
         if (cachedQry != null) {


Mime
View raw message