IterateForward() public method

public IterateForward ( bool useCache ) : IEnumerable
useCache bool
return IEnumerable
Beispiel #1
0
        //bool SYNCHRO_READ
        public IEnumerable<LTrieRow> IterateForward(ITrieRootNode readRootNode)
        {
            this.CheckTableIsOperable();

            if (readRootNode == null)   //SYNCHRO_READ
            {
                //Flashing changes on the disk before commit. In case if the same thread uses the same root node
                this.SaveGenerationMap();

                Forward fw = new Forward(rn);
                return fw.IterateForward(false);

            }
            else
            {
                Forward fw = new Forward((LTrieRootNode)readRootNode);
                return fw.IterateForward(true);
            }
        }
Beispiel #2
0
        //Iterate
        public IEnumerable<LTrieRow> IterateForward()
        {
            this.CheckTableIsOperable();

            LTrieRootNode readRootNode = new LTrieRootNode(this);

            Forward fw = new Forward(readRootNode);
            return fw.IterateForward(true);
        }