public string Dump() { if (KeyCount == 0) { return("EMPTY LEAF NODE"); } return(String.Format("LEAF@{0}[{1} keys: {2} - {3}]", PageId, KeyCount, LeftmostKey.Dump(), RightmostKey.Dump())); }
public void DumpStructure(BPlusTree tree, int indentLevel) { if (KeyCount == 0) { Console.WriteLine("{0}EMPTY LEAF NODE", new string(' ', indentLevel)); return; } Console.WriteLine("{0}LEAF@{1}[{2} keys: {3} - {4}]", new string(' ', indentLevel * 4), PageId, KeyCount, LeftmostKey.Dump(), RightmostKey.Dump()); }