Show / Hide Table of Contents

    Class ConsistentHash<T>

    A consistant hash implementation with murmur hash.

    Inheritance
    Object
    ConsistentHash<T>
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Advanced.Algorithms.Distributed
    Assembly: Advanced.Algorithms.dll
    Syntax
    public class ConsistentHash<T>
    Type Parameters
    Name Description
    T

    Constructors

    ConsistentHash()

    Declaration
    public ConsistentHash()

    ConsistentHash(IEnumerable<T>, Int32)

    Declaration
    public ConsistentHash(IEnumerable<T> nodes, int replicas)
    Parameters
    Type Name Description
    IEnumerable<T> nodes
    Int32 replicas

    Methods

    AddNode(T)

    Add a new bucket.

    Declaration
    public void AddNode(T node)
    Parameters
    Type Name Description
    T node

    GetNode(String)

    Get the bucket for the given Key.

    Declaration
    public T GetNode(string key)
    Parameters
    Type Name Description
    String key
    Returns
    Type Description
    T

    RemoveNode(T)

    Remove a bucket from lookup.

    Declaration
    public void RemoveNode(T node)
    Parameters
    Type Name Description
    T node
    Back to top Generated by DocFX