You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2016/04/01 10:24:51 UTC
[06/22] ignite git commit: Removed "values.
Removed "values.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/591868a3
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/591868a3
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/591868a3
Branch: refs/heads/ignite-2931
Commit: 591868a3181658db47c0beb14235275d7aea369f
Parents: 6b7ad1d
Author: vozerov-gridgain <vo...@gridgain.com>
Authored: Thu Mar 31 17:38:58 2016 +0300
Committer: vozerov-gridgain <vo...@gridgain.com>
Committed: Thu Mar 31 17:38:58 2016 +0300
----------------------------------------------------------------------
.../processors/cache/GridCacheAdapter.java | 21 +-------------------
.../distributed/near/GridNearCacheAdapter.java | 4 ++--
2 files changed, 3 insertions(+), 22 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/591868a3/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
index 0e4bb2c..43deb6c 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
@@ -1041,26 +1041,7 @@ public abstract class GridCacheAdapter<K, V> implements IgniteInternalCache<K, V
/** {@inheritDoc} */
@Override public Collection<V> values() {
- return values((CacheEntryPredicate[])null);
- }
-
- /**
- * Collection of values cached on this node. You can remove
- * elements from this collection, but you cannot add elements to this collection.
- * All removal operation will be reflected on the cache itself.
- * <p>
- * Iterator over this collection will not fail if collection was
- * concurrently updated by another thread. This means that iterator may or
- * may not return latest values depending on whether they were added before
- * or after current iterator position.
- * <p>
- * NOTE: this operation is not distributed and returns only the values cached on this node.
- *
- * @param filter Filters.
- * @return Collection of cached values.
- */
- public Collection<V> values(CacheEntryPredicate... filter) {
- return map.values(filter);
+ return map.values();
}
/**
http://git-wip-us.apache.org/repos/asf/ignite/blob/591868a3/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/GridNearCacheAdapter.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/GridNearCacheAdapter.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/GridNearCacheAdapter.java
index 4ba9601..489e37e 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/GridNearCacheAdapter.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/GridNearCacheAdapter.java
@@ -401,8 +401,8 @@ public abstract class GridNearCacheAdapter<K, V> extends GridDistributedCacheAda
}
/** {@inheritDoc} */
- @Override public Collection<V> values(CacheEntryPredicate... filter) {
- return new GridCacheValueCollection<>(ctx, entrySet(filter), ctx.vararg(F.<K, V>cacheHasPeekValue()));
+ @Override public Collection<V> values() {
+ return new GridCacheValueCollection<>(ctx, entrySet(), ctx.vararg(F.<K, V>cacheHasPeekValue()));
}
/** {@inheritDoc} */