ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [1/2] ignite git commit: Removed unused GridCacheConcurrentMap.randomEntry() method.
Date Fri, 14 Apr 2017 14:09:22 GMT
Repository: ignite
Updated Branches:
  refs/heads/master 9b61a76bd -> ecadf6a0d


Removed unused GridCacheConcurrentMap.randomEntry() method.


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

Branch: refs/heads/master
Commit: af55d7292215dd872ddd2620942655ea6bdf5c01
Parents: 8b56a43
Author: devozerov <vozerov@gridgain.com>
Authored: Fri Apr 14 17:08:50 2017 +0300
Committer: devozerov <vozerov@gridgain.com>
Committed: Fri Apr 14 17:08:50 2017 +0300

----------------------------------------------------------------------
 .../internal/processors/cache/GridCacheConcurrentMap.java |  5 -----
 .../processors/cache/GridCacheConcurrentMapImpl.java      | 10 ----------
 .../internal/processors/cache/GridNoStorageCacheMap.java  |  5 -----
 .../dht/GridCachePartitionedConcurrentMap.java            |  5 -----
 4 files changed, 25 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/af55d729/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheConcurrentMap.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheConcurrentMap.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheConcurrentMap.java
index a6738f3..9378f74 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheConcurrentMap.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheConcurrentMap.java
@@ -91,11 +91,6 @@ public interface GridCacheConcurrentMap {
     public void decrementPublicSize(GridCacheEntryEx e);
 
     /**
-     * @return Partition random entry.
-     */
-    @Nullable public GridCacheMapEntry randomEntry();
-
-    /**
      * @return Random entry out of hash map.
      */
     public Set<KeyCacheObject> keySet(CacheEntryPredicate... filter);

http://git-wip-us.apache.org/repos/asf/ignite/blob/af55d729/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheConcurrentMapImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheConcurrentMapImpl.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheConcurrentMapImpl.java
index 0ef1fdb..76d961a 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheConcurrentMapImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheConcurrentMapImpl.java
@@ -343,16 +343,6 @@ public abstract class GridCacheConcurrentMapImpl implements GridCacheConcurrentM
     }
 
     /** {@inheritDoc} */
-    @Deprecated @Nullable @Override public GridCacheMapEntry randomEntry() {
-        Iterator<GridCacheMapEntry> iterator = map.values().iterator();
-
-        if (iterator.hasNext())
-            return iterator.next();
-
-        return null;
-    }
-
-    /** {@inheritDoc} */
     @Override public Set<GridCacheMapEntry> entrySet(final CacheEntryPredicate... filter)
{
         final IgnitePredicate<GridCacheMapEntry> p = new IgnitePredicate<GridCacheMapEntry>()
{
             @Override public boolean apply(GridCacheMapEntry entry) {

http://git-wip-us.apache.org/repos/asf/ignite/blob/af55d729/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridNoStorageCacheMap.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridNoStorageCacheMap.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridNoStorageCacheMap.java
index db3533d..00827ee 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridNoStorageCacheMap.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridNoStorageCacheMap.java
@@ -79,11 +79,6 @@ public class GridNoStorageCacheMap implements GridCacheConcurrentMap {
     }
 
     /** {@inheritDoc} */
-    @Nullable @Override public GridCacheMapEntry randomEntry() {
-        return null;
-    }
-
-    /** {@inheritDoc} */
     @Override public Set<KeyCacheObject> keySet(CacheEntryPredicate... filter) {
         return Collections.emptySet();
     }

http://git-wip-us.apache.org/repos/asf/ignite/blob/af55d729/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridCachePartitionedConcurrentMap.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridCachePartitionedConcurrentMap.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridCachePartitionedConcurrentMap.java
index 6230c85..357bf89 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridCachePartitionedConcurrentMap.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridCachePartitionedConcurrentMap.java
@@ -137,11 +137,6 @@ public class GridCachePartitionedConcurrentMap implements GridCacheConcurrentMap
     }
 
     /** {@inheritDoc} */
-    @Nullable @Override public GridCacheMapEntry randomEntry() {
-        return entries().iterator().next();
-    }
-
-    /** {@inheritDoc} */
     @Override public Set<KeyCacheObject> keySet(final CacheEntryPredicate... filter)
{
         return new PartitionedSet<KeyCacheObject>() {
             @Override protected Set<KeyCacheObject> set(GridDhtLocalPartition part)
{


Mime
View raw message