ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [11/22] ignite git commit: WIP.
Date Fri, 01 Apr 2016 08:24:56 GMT
WIP.


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

Branch: refs/heads/ignite-2931
Commit: 0fbb6aa8899abbfddc0c59b5b4a2921c0c6ff9a8
Parents: cc157a0
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Fri Apr 1 08:48:05 2016 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Fri Apr 1 08:48:05 2016 +0300

----------------------------------------------------------------------
 .../internal/processors/cache/GridCacheContext.java      | 11 +++--------
 .../cache/distributed/dht/atomic/GridDhtAtomicCache.java |  2 +-
 2 files changed, 4 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/0fbb6aa8/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java
index da51995..6d03523 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java
@@ -1114,6 +1114,7 @@ public class GridCacheContext<K, V> implements Externalizable
{
     /**
      * @return No value filter.
      */
+    // TODO: Remove
     public CacheEntryPredicate[] noValArray() {
         return new CacheEntryPredicate[]{new CacheEntrySerializablePredicate(new CacheEntryPredicateNoValue())};
     }
@@ -1128,6 +1129,7 @@ public class GridCacheContext<K, V> implements Externalizable
{
     /**
      * @return Has value filter.
      */
+    // TODO: Remove
     public CacheEntryPredicate[] hasValArray() {
         return new CacheEntryPredicate[]{new CacheEntrySerializablePredicate(new CacheEntryPredicateHasValue())};
     }
@@ -1144,19 +1146,12 @@ public class GridCacheContext<K, V> implements Externalizable
{
      * @param val Value to check.
      * @return Predicate array that checks for value.
      */
+    // TODO: Remove
     public CacheEntryPredicate[] equalsValArray(V val) {
         return new CacheEntryPredicate[]{new CacheEntryPredicateContainsValue(toCacheObject(val))};
     }
 
     /**
-     * @param val Value to check.
-     * @return Predicate that checks for value.
-     */
-    public CacheEntryPredicate equalsValue(V val) {
-        return new CacheEntryPredicateContainsValue(toCacheObject(val));
-    }
-
-    /**
      * @return Empty cache version array.
      */
     public GridCacheVersion[] emptyVersion() {

http://git-wip-us.apache.org/repos/asf/ignite/blob/0fbb6aa8/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridDhtAtomicCache.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridDhtAtomicCache.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridDhtAtomicCache.java
index dd0c736..f3085d1 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridDhtAtomicCache.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridDhtAtomicCache.java
@@ -485,7 +485,7 @@ public class GridDhtAtomicCache<K, V> extends GridDhtCacheAdapter<K,
V> {
             null,
             true,
             false,
-            ctx.noValArray(),
+            new CacheEntryPredicate[] { ctx.noVal() },
             false,
             UPDATE).get();
     }


Mime
View raw message