ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject [29/50] [abbrv] incubator-ignite git commit: # sprint-2
Date Sun, 22 Mar 2015 19:46:26 GMT
# sprint-2


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

Branch: refs/heads/ignite-379-1
Commit: 385f86895f378dabc2de55ef67763d4e71116b52
Parents: 1356a20
Author: sboikov <sboikov@gridgain.com>
Authored: Fri Mar 20 13:26:44 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Fri Mar 20 13:26:44 2015 +0300

----------------------------------------------------------------------
 .../internal/processors/cache/GridCacheContext.java    | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/385f8689/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 1efc49a..c5cea72 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
@@ -145,12 +145,6 @@ public class GridCacheContext<K, V> implements Externalizable {
     /** Grid cache. */
     private GridCacheAdapter<K, V> cache;
 
-    /** No value filter array. */
-    private CacheEntryPredicate[] noValArr;
-
-    /** Has value filter array. */
-    private CacheEntryPredicate[] hasValArr;
-
     /** Cached local rich node. */
     private ClusterNode locNode;
 
@@ -274,9 +268,6 @@ public class GridCacheContext<K, V> implements Externalizable {
 
         log = ctx.log(getClass());
 
-        noValArr = new CacheEntryPredicate[]{new CacheEntrySerializablePredicate(new CacheEntryPredicateNoValue())};
-        hasValArr = new CacheEntryPredicate[]{new CacheEntrySerializablePredicate(new CacheEntryPredicateHasValue())};
-
         // Create unsafe memory only if writing values
         unsafeMemory = (cacheCfg.getMemoryMode() == OFFHEAP_VALUES || cacheCfg.getMemoryMode()
== OFFHEAP_TIERED) ?
             new GridUnsafeMemory(cacheCfg.getOffHeapMaxMemory()) : null;
@@ -965,14 +956,14 @@ public class GridCacheContext<K, V> implements Externalizable
{
      * @return No value filter.
      */
     public CacheEntryPredicate[] noValArray() {
-        return noValArr;
+        return new CacheEntryPredicate[]{new CacheEntrySerializablePredicate(new CacheEntryPredicateNoValue())};
     }
 
     /**
      * @return Has value filter.
      */
     public CacheEntryPredicate[] hasValArray() {
-        return hasValArr;
+        return new CacheEntryPredicate[]{new CacheEntrySerializablePredicate(new CacheEntryPredicateHasValue())};
     }
 
     /**


Mime
View raw message