IterateForwardFromTo() public method

IterateForwardFromTo
public IterateForwardFromTo ( byte initKey, byte stopKey, bool inclStartKey, bool inclStopKey, bool useCache ) : IEnumerable
initKey byte
stopKey byte
inclStartKey bool
inclStopKey bool
useCache bool
return IEnumerable
コード例 #1
0
ファイル: LianaTrie.cs プロジェクト: hhblaze/DBreeze
        public IEnumerable<LTrieRow> IterateForwardFromTo(byte[] startKey, byte[] stopKey, bool includeStartKey, bool includeStopKey, ITrieRootNode readRootNode)
        {
            this.CheckTableIsOperable();

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

                Forward bw = new Forward(rn);
                return bw.IterateForwardFromTo(startKey, stopKey, includeStartKey, includeStopKey,false);

            }
            else
            {
                Forward bw = new Forward((LTrieRootNode)readRootNode);
                return bw.IterateForwardFromTo(startKey, stopKey, includeStartKey, includeStopKey,true);
            }
        }
コード例 #2
0
ファイル: LianaTrie.cs プロジェクト: hhblaze/DBreeze
        //Iterate From - To
        public IEnumerable<LTrieRow> IterateForwardFromTo(byte[] startKey, byte[] stopKey,bool includeStartKey, bool includeStopKey)
        {
            this.CheckTableIsOperable();

            LTrieRootNode readRootNode = new LTrieRootNode(this);

            Forward bw = new Forward(readRootNode);
            return bw.IterateForwardFromTo(startKey,stopKey,includeStartKey,includeStopKey,true);
        }