You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2016/10/28 12:24:59 UTC
ignite git commit: ignite-4111
Repository: ignite
Updated Branches:
refs/heads/ignite-4111 d1bc4cb2f -> b60428e89
ignite-4111
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/b60428e8
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/b60428e8
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/b60428e8
Branch: refs/heads/ignite-4111
Commit: b60428e89291555c3b43fd66cf3f39e5b43b8d7f
Parents: d1bc4cb
Author: sboikov <sb...@gridgain.com>
Authored: Fri Oct 28 15:23:02 2016 +0300
Committer: sboikov <sb...@gridgain.com>
Committed: Fri Oct 28 15:23:02 2016 +0300
----------------------------------------------------------------------
.../processors/cache/GridCacheUtils.java | 67 --------------------
1 file changed, 67 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/b60428e8/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
index 4c18f21..90e428c 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
@@ -410,23 +410,6 @@ public class GridCacheUtils {
}
/**
- * Gets public cache name substituting null name by {@code 'default'}.
- *
- * @return Public cache name substituting null name by {@code 'default'}.
- */
- public static String namexx(@Nullable String name) {
- return name == null ? "default" : name;
- }
-
- /**
- * @return Partition to state transformer.
- */
- @SuppressWarnings({"unchecked"})
- public static IgniteClosure<GridDhtLocalPartition, GridDhtPartitionState> part2state() {
- return PART2STATE;
- }
-
- /**
* Gets all nodes on which cache with the same name is started.
*
* @param ctx Cache context.
@@ -462,18 +445,6 @@ public class GridCacheUtils {
}
/**
- * Gets alive remote nodes with at least one cache configured.
- *
- * @param ctx Cache context.
- * @param topOrder Maximum allowed node order.
- * @return Affinity nodes.
- */
- public static Collection<ClusterNode> aliveRemoteServerNodesWithCaches(final GridCacheSharedContext ctx,
- AffinityTopologyVersion topOrder) {
- return ctx.discovery().aliveRemoteServerNodesWithCaches(topOrder);
- }
-
- /**
* Gets all nodes on which cache with the same name is started and the local DHT storage is enabled.
*
* @param ctx Cache context.
@@ -644,44 +615,6 @@ public class GridCacheUtils {
}
/**
- * Gets type filter for projections.
- *
- * @param keyType Key type.
- * @param valType Value type.
- * @param <K> Key type.
- * @param <V> Value type.
- * @return Type filter.
- */
- public static <K, V> IgniteBiPredicate<K, V> typeFilter(final Class<?> keyType, final Class<?> valType) {
- return new P2<K, V>() {
- @Override public boolean apply(K k, V v) {
- return keyType.isAssignableFrom(k.getClass()) && valType.isAssignableFrom(v.getClass());
- }
-
- @Override public String toString() {
- return "Type filter [keyType=" + keyType + ", valType=" + valType + ']';
- }
- };
- }
-
- /**
- * @param keyType Key type.
- * @param valType Value type.
- * @return Type filter.
- */
- public static CacheEntryPredicate typeFilter0(final Class<?> keyType, final Class<?> valType) {
- return new CacheEntrySerializablePredicate(new CacheEntryPredicateAdapter() {
- @Override public boolean apply(GridCacheEntryEx e) {
- Object val = CU.value(peekVisibleValue(e), e.context(), false);
-
- return val == null ||
- valType.isAssignableFrom(val.getClass()) &&
- keyType.isAssignableFrom(e.key().value(e.context().cacheObjectContext(), false).getClass());
- }
- });
- }
-
- /**
* @return Boolean reducer.
*/
public static IgniteReducer<Boolean, Boolean> boolReducer() {