Optional wrapper for cache keys to provide support for custom affinity mapping. The value returned by Affinity will be used for key-to-node affinity.
More...
Apache.Ignite.Core.Cache.Affinity.AffinityKey.AffinityKey |
( |
object |
key | ) |
|
Apache.Ignite.Core.Cache.Affinity.AffinityKey.AffinityKey |
( |
object |
key, |
|
|
object |
affinity |
|
) |
| |
- Parameters
-
key | The key. |
affinity | The affinity key. |
bool Apache.Ignite.Core.Cache.Affinity.AffinityKey.Equals |
( |
AffinityKey |
other | ) |
|
- Parameters
-
other | An object to compare with this object. |
- Returns
- true if the current object is equal to the other parameter; otherwise, false.
override bool Apache.Ignite.Core.Cache.Affinity.AffinityKey.Equals |
( |
object |
obj | ) |
|
- Parameters
-
obj | The object to compare with this instance. |
- Returns
true
if the specified object is equal to this instance; otherwise, false
.
override int Apache.Ignite.Core.Cache.Affinity.AffinityKey.GetHashCode |
( |
| ) |
|
- Returns
- A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
- Parameters
-
left | The left. |
right | The right. |
- Returns
- The result of the operator.
- Parameters
-
left | The left. |
right | The right. |
- Returns
- The result of the operator.
void Apache.Ignite.Core.Cache.Affinity.AffinityKey.WriteBinary |
( |
IBinaryWriter |
writer | ) |
|
object Apache.Ignite.Core.Cache.Affinity.AffinityKey.Affinity |
|
get |
object Apache.Ignite.Core.Cache.Affinity.AffinityKey.Key |
|
get |