public virtual BTreePointer FirstValidPointer()
 {
     if (null == _pointer)
     {
         return(null);
     }
     if (_pointer.IsValid())
     {
         return(_pointer);
     }
     return(_pointer.Next());
 }
Ejemplo n.º 2
0
        public virtual void Clear(Transaction transaction)
        {
            BTreePointer currentPointer = FirstPointer(transaction);

            while (currentPointer != null && currentPointer.IsValid())
            {
                BTreeNode node  = currentPointer.Node();
                int       index = currentPointer.Index();
                node.Remove(transaction, index);
                currentPointer = currentPointer.Next();
            }
        }