IterateForward() 공개 메소드

public IterateForward ( bool useCache ) : IEnumerable
useCache bool
리턴 IEnumerable
예제 #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);
            }
        }
예제 #2
0
        //Iterate
        public IEnumerable<LTrieRow> IterateForward()
        {
            this.CheckTableIsOperable();

            LTrieRootNode readRootNode = new LTrieRootNode(this);

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