Struct Partition<TNode>
Represents a node and a range on the consistent hash ring that it owns.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: ConsistentHashing
Assembly: ConsistentHashing.dll
Syntax
public struct Partition<TNode>
Type Parameters
Name | Description |
---|---|
TNode | The type of the node. |
Constructors
| Improve this Doc View SourcePartition(TNode, HashRange)
Creates a new partition with the specified node and hash range.
Declaration
public Partition(TNode node, HashRange range)
Parameters
Type | Name | Description |
---|---|---|
TNode | node | The node. |
HashRange | range | The range. |
Properties
| Improve this Doc View SourceNode
Gets the node that owns Range.
Declaration
public TNode Node { get; }
Property Value
Type | Description |
---|---|
TNode |
Range
Gets the range of hashes owned by Node.
Declaration
public HashRange Range { get; }
Property Value
Type | Description |
---|---|
HashRange |