Esempio n. 1
0
 private void TryToRebalanceNode(Node <TKey, TValue> node, int level)
 {
     if (node.Count >= node.ElementCount * _balancer.GetOversizeK(level))
     {
         var newCount = node.Count * _balancer.GetGrowK(level);
     }
 }
Esempio n. 2
0
 private void TryToRebalance()
 {
     if (Count >= ElementCount * _balancer.GetOversizeK(_level))
     {
         var newCount = Count * _balancer.GetGrowK(_level);
         if (newCount >= _balancer.GetMaxNodeSize(_level))
         {
             _isSubNodesOn = true;
         }
         else
         {
             Expand(newCount);
         }
     }
 }