ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [3/4] ignite git commit: Merge remote-tracking branch 'remotes/origin/ignite-sql-opt' into ignite-sql-opt-2
Date Wed, 25 Nov 2015 10:14:25 GMT
Merge remote-tracking branch 'remotes/origin/ignite-sql-opt' into ignite-sql-opt-2


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

Branch: refs/heads/ignite-sql-opt-2
Commit: 7fe1c3caa6a889d8adf9d96985782c85312d53a0
Parents: cd216c3 179270c
Author: sboikov <sboikov@gridgain.com>
Authored: Wed Nov 25 13:13:41 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Wed Nov 25 13:13:41 2015 +0300

----------------------------------------------------------------------
 .../configuration/CacheConfiguration.java       | 30 +++++++++
 .../processors/query/h2/IgniteH2Indexing.java   |  9 +++
 .../query/h2/opt/GridH2RowDescriptor.java       |  5 ++
 .../query/h2/opt/GridH2TreeIndex.java           |  6 +-
 .../cache/IgniteCacheAbstractQuerySelfTest.java | 69 +++++++++++---------
 ...PartitionedSnapshotEnabledQuerySelfTest.java | 28 ++++++++
 .../IgniteCacheQuerySelfTestSuite.java          |  2 +
 7 files changed, 115 insertions(+), 34 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/7fe1c3ca/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/IgniteH2Indexing.java
----------------------------------------------------------------------
diff --cc modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/IgniteH2Indexing.java
index d39d499,45c6327..4f2ed2d
--- 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
@@@ -2407,35 -2316,10 +2411,40 @@@ public class IgniteH2Indexing implement
          @Override public boolean preferSwapValue() {
              return preferSwapVal;
          }
+ 
+         /** {@inheritDoc} */
+         @Override public boolean snapshotableIndex() {
+             return snapshotableIdx;
+         }
      }
 +
 +    /**
 +     *
 +     */
 +    private static class StatementCache extends LinkedHashMap<String, PreparedStatement>
{
 +        /** */
 +        private int size;
 +
 +        /**
 +         * @param size Size.
 +         */
 +        private StatementCache(int size) {
 +            super(size, (float)0.75, true);
 +
 +            this.size = size;
 +        }
 +
 +        /** {@inheritDoc} */
 +        @Override protected boolean removeEldestEntry(Map.Entry<String, PreparedStatement>
eldest) {
 +            boolean rmv = size() > size;
 +
 +            if (rmv) {
 +                PreparedStatement stmt = eldest.getValue();
 +
 +                U.closeQuiet(stmt);
 +            }
 +
 +            return rmv;
 +        }
 +    }
  }


Mime
View raw message