Example #1
0
 public static BplusNode BinaryRoot(BplusNode LeftNode, string key, BplusNode RightNode, BplusTreeLong owner)
 {
     BplusNode newRoot = new BplusNode(owner, null, -1, false);
     //newRoot.Clear(); // redundant
     newRoot.ChildKeys[0] = key;
     LeftNode.Reparent(newRoot, 0);
     RightNode.Reparent(newRoot, 1);
     // new root is stored elsewhere
     return newRoot;
 }