Beispiel #1
0
 public override void Reset()
 {
     CurrentNode      = _btree.GetRoot();
     _currentKeyIndex = _orderByType.IsOrderByDesc()
                            ? CurrentNode.GetNbKeys()
                            : 0;
     NbReturnedElements = 0;
 }
Beispiel #2
0
        protected AbstractBTreeIterator(IBTree tree, OrderByConstants orderByType)
        {
            _btree       = tree;
            CurrentNode  = tree.GetRoot();
            _orderByType = orderByType;

            _currentKeyIndex = orderByType.IsOrderByDesc()
                                   ? CurrentNode.GetNbKeys()
                                   : 0;
        }