#ignite-611: Remove projection from code.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/e70c98da Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/e70c98da Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/e70c98da Branch: refs/heads/ignite-629-1 Commit: e70c98da367f3366ac39ce6843b32fabc2477c9b Parents: 0351668 Author: ivasilinets <[email protected]> Authored: Thu Mar 26 18:40:00 2015 +0300 Committer: ivasilinets <[email protected]> Committed: Thu Mar 26 18:40:00 2015 +0300 ---------------------------------------------------------------------- .../processors/cache/CacheProjection.java | 24 -------------------- .../processors/cache/GridCacheProxyImpl.java | 14 ------------ 2 files changed, 38 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e70c98da/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheProjection.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheProjection.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheProjection.java index 6659735..d2c113d 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheProjection.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheProjection.java @@ -219,30 +219,6 @@ public interface CacheProjection<K, V> extends Iterable<Cache.Entry<K, V>> { public CacheQueries<K, V> queries(); /** - * Gets cache projection only for given key and value type. Only {@code non-null} key-value - * pairs that have matching key and value pairs will be used in this projection. - * - * @param keyType Key type. - * @param valType Value type. - * @param <K1> Key type. - * @param <V1> Value type. - * @return Cache projection for given key and value types. - */ - public <K1, V1> CacheProjection<K1, V1> projection(Class<? super K1> keyType, Class<? super V1> valType); - - /** - * Gets cache projection based on given entry filter. This filter will be simply passed through - * to all cache operations on this projection. Unlike <code>projection(org.apache.ignite.lang.IgniteBiPredicate)</code> - * method, this filter will <b>not</b> be used for pre-filtering. - * - * @param filter Filter to be passed through to all cache operations. If {@code null}, then the - * same projection is returned. If cache operation receives its own filter, then filters - * will be {@code 'anded'}. - * @return Projection based on given filter. - */ - public CacheProjection<K, V> projection(@Nullable CacheEntryPredicate filter); - - /** * Gets cache projection base on this one, but with the specified flags turned on. * <h1 class="header">Cache Flags</h1> * The resulting projection will inherit all the flags from this projection. http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e70c98da/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProxyImpl.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProxyImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProxyImpl.java index 772a3b7..239c006 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProxyImpl.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProxyImpl.java @@ -307,20 +307,6 @@ public class GridCacheProxyImpl<K, V> implements GridCacheProxy<K, V>, Externali } /** {@inheritDoc} */ - @Override public <K1, V1> CacheProjection<K1, V1> projection( - Class<? super K1> keyType, - Class<? super V1> valType - ) { - return delegate.projection(keyType, valType); - } - - /** {@inheritDoc} */ - @Override public CacheProjection<K, V> projection( - @Nullable CacheEntryPredicate filter) { - return delegate.projection(filter); - } - - /** {@inheritDoc} */ @Override public CacheProjection<K, V> flagsOn(@Nullable CacheFlag[] flags) { return delegate.flagsOn(flags); }
