ConsistentHashingT Constructor |
初始化新实例
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax public ConsistentHashing(
T[] nodes,
int vnodecount = 100
)
Public Sub New (
nodes As T(),
Optional vnodecount As Integer = 100
)
public:
ConsistentHashing(
array<T>^ nodes,
int vnodecount = 100
)
new :
nodes : 'T[] *
?vnodecount : int
(* Defaults:
let _vnodecount = defaultArg vnodecount 100
*)
-> ConsistentHashing
Parameters
- nodes
- Type: T
实际节点 - vnodecount (Optional)
- Type: SystemInt32
虚拟节点数,建议不低于 100
See Also