Exemplo n.º 1
0
 public bool MoveNext()
 {
     if (_queueEntry == null)
     {
         _queueEntry = _tree.GetMinimumNode() as QueueEntry;
     }
     else
     {
         _queueEntry = _tree.GetSuccessor(_queueEntry) as QueueEntry;
     }
     return(_queueEntry != null);
 }
Exemplo n.º 2
0
        public override void GetAllKeys(IntArrayList offsets)
        {
            RBNodeBase rbNode = _rbTree.GetMinimumNode();

            while (rbNode != null)
            {
                BTreePage page = PreparePage((BTreeNode)rbNode.Key);
                if (page.GetAllKeys(offsets) == 0)
                {
                    break;
                }
                rbNode = _rbTree.GetNext(rbNode);
            }
        }