VelocityDb.Collection.Spatial.NodeLeaf.reorganize C# (CSharp) Method

reorganize() private method

private reorganize ( VelocityDb.Collection.Spatial.RTree rtree ) : void
rtree VelocityDb.Collection.Spatial.RTree
return void
    internal override void reorganize(RTree rtree)
    {
      int countdownIndex = rtree.maxNodeEntries - 1;
      for (int index = 0; index < entryCount; index++)
      {
        if (entries[index] == null)
        {
          while (entries[countdownIndex] == null && countdownIndex > index)
            countdownIndex--;
          entries[index] = entries[countdownIndex];
          entries[countdownIndex] = null;
        }
      }
    }