Search Results for

    Show / Hide Table of Contents

    Struct AffinityKey

    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.

    Implements
    IEquatable<AffinityKey>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Apache.Ignite.Core.Cache.Affinity
    Assembly: Apache.Ignite.Core.dll
    Syntax
    public struct AffinityKey : IEquatable<AffinityKey>

    Constructors

    AffinityKey(object)

    Initializes a new instance of the AffinityKey struct.

    Declaration
    public AffinityKey(object key)
    Parameters
    Type Name Description
    object key

    The key.

    AffinityKey(object, object)

    Initializes a new instance of the AffinityKey struct.

    Declaration
    public AffinityKey(object key, object affinity)
    Parameters
    Type Name Description
    object key

    The key.

    object affinity

    The affinity key.

    Properties

    Affinity

    Gets the affinity key.

    Declaration
    public object Affinity { get; }
    Property Value
    Type Description
    object

    Key

    Gets the key.

    Declaration
    public object Key { get; }
    Property Value
    Type Description
    object

    Methods

    Equals(AffinityKey)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(AffinityKey other)
    Parameters
    Type Name Description
    AffinityKey other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    Equals(object)

    Determines whether the specified object, is equal to this instance.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with this instance.

    Returns
    Type Description
    bool

    true if the specified object is equal to this instance; otherwise, false.

    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Overrides
    ValueType.GetHashCode()

    ToString()

    Returns a string that represents this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents this instance.

    Overrides
    ValueType.ToString()

    WriteBinary(IBinaryWriter)

    Writes this object to the given writer.

    Declaration
    public void WriteBinary(IBinaryWriter writer)
    Parameters
    Type Name Description
    IBinaryWriter writer

    Writer.

    Operators

    operator ==(AffinityKey, AffinityKey)

    Implements the operator ==.

    Declaration
    public static bool operator ==(AffinityKey left, AffinityKey right)
    Parameters
    Type Name Description
    AffinityKey left

    The left.

    AffinityKey right

    The right.

    Returns
    Type Description
    bool

    The result of the operator.

    operator !=(AffinityKey, AffinityKey)

    Implements the operator !=.

    Declaration
    public static bool operator !=(AffinityKey left, AffinityKey right)
    Parameters
    Type Name Description
    AffinityKey left

    The left.

    AffinityKey right

    The right.

    Returns
    Type Description
    bool

    The result of the operator.

    Implements

    IEquatable<T>
    In this article
    Back to top © 2015 - 2019 The Apache Software Foundation