Apache Ignite.NET
Apache.Ignite.Core.Cache.Affinity.AffinityKey Struct Reference

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...

Inheritance diagram for Apache.Ignite.Core.Cache.Affinity.AffinityKey:

Public Member Functions

 AffinityKey (object key)
 Initializes a new instance of the AffinityKey struct. More...
 
 AffinityKey (object key, object affinity)
 Initializes a new instance of the AffinityKey struct. More...
 
void WriteBinary (IBinaryWriter writer)
 Writes this object to the given writer. More...
 
bool Equals (AffinityKey other)
 Indicates whether the current object is equal to another object of the same type. More...
 
override bool Equals (object obj)
 Determines whether the specified object, is equal to this instance. More...
 
override int GetHashCode ()
 Returns a hash code for this instance. More...
 

Static Public Member Functions

static bool operator== (AffinityKey left, AffinityKey right)
 Implements the operator ==. More...
 
static bool operator!= (AffinityKey left, AffinityKey right)
 Implements the operator !=. More...
 

Properties

object Key [get]
 Gets the key. More...
 
object Affinity [get]
 Gets the affinity key. More...
 

Detailed Description

Constructor & Destructor Documentation

Apache.Ignite.Core.Cache.Affinity.AffinityKey.AffinityKey ( object  key)
Parameters
keyThe key.
Apache.Ignite.Core.Cache.Affinity.AffinityKey.AffinityKey ( object  key,
object  affinity 
)
Parameters
keyThe key.
affinityThe affinity key.

Member Function Documentation

bool Apache.Ignite.Core.Cache.Affinity.AffinityKey.Equals ( AffinityKey  other)
Parameters
otherAn 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
objThe 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.
static bool Apache.Ignite.Core.Cache.Affinity.AffinityKey.operator!= ( AffinityKey  left,
AffinityKey  right 
)
static
Parameters
leftThe left.
rightThe right.
Returns
The result of the operator.
static bool Apache.Ignite.Core.Cache.Affinity.AffinityKey.operator== ( AffinityKey  left,
AffinityKey  right 
)
static
Parameters
leftThe left.
rightThe right.
Returns
The result of the operator.
void Apache.Ignite.Core.Cache.Affinity.AffinityKey.WriteBinary ( IBinaryWriter  writer)
Parameters
writerWriter.

Property Documentation

object Apache.Ignite.Core.Cache.Affinity.AffinityKey.Affinity
get
object Apache.Ignite.Core.Cache.Affinity.AffinityKey.Key
get