コード例 #1
0
 private bool IsOnSameRack(DatanodeDescriptor left, DatanodeStorageInfo right)
 {
     return(cluster.IsOnSameRack(left, right.GetDatanodeDescriptor()));
 }
コード例 #2
0
 public override bool Match(NetworkTopology cluster, Node left, Node right)
 {
     return(cluster.IsOnSameRack(left, right));
 }