Search Results for

    Show / Hide Table of Contents

    Struct AffinityTopologyVersion

    Affinity topology version.

    Implements
    IEquatable<AffinityTopologyVersion>
    IComparable<AffinityTopologyVersion>
    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 AffinityTopologyVersion : IEquatable<AffinityTopologyVersion>, IComparable<AffinityTopologyVersion>

    Constructors

    AffinityTopologyVersion(long, int)

    Initializes a new instance of the AffinityTopologyVersion struct.

    Declaration
    public AffinityTopologyVersion(long version, int minorVersion)
    Parameters
    Type Name Description
    long version

    The version.

    int minorVersion

    The minor version.

    Properties

    MinorVersion

    Gets the minor version, which is increased when new caches start.

    Declaration
    public int MinorVersion { get; }
    Property Value
    Type Description
    int

    Version

    Gets the major version, same as TopologyVersion.

    Declaration
    public long Version { get; }
    Property Value
    Type Description
    long

    Methods

    CompareTo(AffinityTopologyVersion)

    Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

    Declaration
    public int CompareTo(AffinityTopologyVersion other)
    Parameters
    Type Name Description
    AffinityTopologyVersion other
    Returns
    Type Description
    int

    Equals(AffinityTopologyVersion)

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

    Declaration
    public bool Equals(AffinityTopologyVersion other)
    Parameters
    Type Name Description
    AffinityTopologyVersion 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()

    Operators

    operator ==(AffinityTopologyVersion, AffinityTopologyVersion)

    Implements the operator ==.

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

    The left operand.

    AffinityTopologyVersion right

    The right operand.

    Returns
    Type Description
    bool

    The result of the operator.

    operator >(AffinityTopologyVersion, AffinityTopologyVersion)

    Implements the operator 'greater than'.

    Declaration
    public static bool operator >(AffinityTopologyVersion left, AffinityTopologyVersion right)
    Parameters
    Type Name Description
    AffinityTopologyVersion left

    The left operand.

    AffinityTopologyVersion right

    The right operand.

    Returns
    Type Description
    bool

    The result of the operator.

    operator >=(AffinityTopologyVersion, AffinityTopologyVersion)

    Implements the operator 'greater or equal than'.

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

    The left operand.

    AffinityTopologyVersion right

    The right operand.

    Returns
    Type Description
    bool

    The result of the operator.

    operator !=(AffinityTopologyVersion, AffinityTopologyVersion)

    Implements the operator !=.

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

    The left operand.

    AffinityTopologyVersion right

    The right operand.

    Returns
    Type Description
    bool

    The result of the operator.

    operator <(AffinityTopologyVersion, AffinityTopologyVersion)

    Implements the operator 'less than'.

    Declaration
    public static bool operator <(AffinityTopologyVersion left, AffinityTopologyVersion right)
    Parameters
    Type Name Description
    AffinityTopologyVersion left

    The left operand.

    AffinityTopologyVersion right

    The right operand.

    Returns
    Type Description
    bool

    The result of the operator.

    operator <=(AffinityTopologyVersion, AffinityTopologyVersion)

    Implements the operator 'less or equal than'.

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

    The left operand.

    AffinityTopologyVersion right

    The right operand.

    Returns
    Type Description
    bool

    The result of the operator.

    Implements

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