/** {@inheritDoc} */ @Override public boolean equals(Object obj) { if (obj != null && obj instanceof ClientListenerProtocolVersion) { ClientListenerProtocolVersion other = (ClientListenerProtocolVersion)obj; return F.eq(major, other.major) && F.eq(minor, other.minor) && F.eq(maintenance, other.maintenance); } return false; }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; JdbcPrimaryKeyMeta meta = (JdbcPrimaryKeyMeta)o; return F.eq(schemaName, meta.schemaName) && F.eq(tblName, meta.tblName) && F.eq(name, meta.name); }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; QueryIndex index = (QueryIndex)o; return inlineSize == index.inlineSize && F.eq(name, index.name) && F.eq(fields, index.fields) && type == index.type; }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GridCacheQueryDetailMetricsKey other = (GridCacheQueryDetailMetricsKey)o; return qryType == other.qryType && F.eq(qry, other.qry); } }
/** {@inheritDoc} */ @Nullable @Override public V remove(Object key) { if (F.eq(key, k3)) { V res = v3; v3 = null; k3 = null; return res; } return super.remove(key); }
/** {@inheritDoc} */ @Override public boolean hasChild(String name, IgniteUuid expId) { if (listing != null) { IgfsListingEntry entry = listing.get(name); if (entry != null) return F.eq(expId, entry.fileId()); } return false; }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (o == this) return true; if (o == null || o.getClass() != getClass()) return false; IgfsBlockKey that = (IgfsBlockKey)o; return blockId == that.blockId && fileId.equals(that.fileId) && F.eq(affKey, that.affKey) && evictExclude == that.evictExclude; }
/** */ @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Person)) return false; Person other = (Person)o; return F.eq(other.name, name) && other.age == age; } }
/** * @param n Node to check. * @param part Partition. * @param topVer Topology version. * @return {@code True} if checked node is primary for given partition. */ public boolean primaryByPartition(ClusterNode n, int part, AffinityTopologyVersion topVer) { return F.eq(primaryByPartition(part, topVer), n); }
/** * @param ctx Callback invoked when cache is stopped. */ public void onCacheStop(GridCacheContext ctx) { Iterator<Map.Entry<UUID, RemoteRoutineInfo>> it = rmtInfos.entrySet().iterator(); while (it.hasNext()) { Map.Entry<UUID, RemoteRoutineInfo> entry = it.next(); GridContinuousHandler hnd = entry.getValue().hnd; if (hnd.isQuery() && F.eq(ctx.name(), hnd.cacheName())) it.remove(); } }
/** {@inheritDoc} */ @SuppressWarnings("unchecked") @Nullable @Override public <T> T attribute(String name) { if (F.eq(name, IgniteNodeAttributes.ATTR_MACS)) return (T)macs; throwUnsupported(); return null; }
/** {@inheritDoc} */ @Override public boolean equals(Object obj) { if (obj == null) return false; if (obj.getClass() != getClass()) return false; PartitionSingleNode other = (PartitionSingleNode)obj; return F.eq(constant(), other.constant()) && F.eq(value(), other.value()) && F.eq(tbl.alias(), other.tbl.alias()); } }
/** {@inheritDoc} */ @Override public boolean apply(ClusterNode node) { String igniteInstanceName = node.attribute(IgniteNodeAttributes.ATTR_IGNITE_INSTANCE_NAME); for (String attr : attrs) { if (F.eq(attr, igniteInstanceName)) return true; } return false; } }
@Override public boolean apply(Event evt) { assert evt.type() == EventType.EVT_CACHE_REBALANCE_PART_DATA_LOST; CacheRebalancingEvent cacheEvt = (CacheRebalancingEvent)evt; if (cacheEvt.partition() == part0 && F.eq(cacheName, cacheEvt.cacheName())) { latch.countDown(); // Auto-unsubscribe. return false; } return true; } }, EventType.EVT_CACHE_REBALANCE_PART_DATA_LOST);