public void Analize(KeyBucketTableService kbt, BucketShardTableService bst) { Dictionary <int, string> BSTable = bst.GetNewTable(); foreach (var row in BSTable) { if (row.Value != bst.GetTable()[row.Key]) { Reshard(bst.GetTable()[row.Key], row.Value, FindRowsFromBucket(row.Key, kbt.GetTable())); bst.ChangeShard(row.Key, BSTable[row.Key]); } } }
private static string GetShard(int bucket) { return(bst.GetTable()[bucket]); }