public IterateBackwardFromTo ( byte initKey, byte stopKey, bool inclStartKey, bool inclStopKey, bool useCache ) : IEnumerable |
||
initKey | byte | |
stopKey | byte | |
inclStartKey | bool | |
inclStopKey | bool | |
useCache | bool | |
Résultat | IEnumerable |
public IEnumerable<LTrieRow> IterateBackwardFromTo(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(); Backward bw = new Backward(rn); return bw.IterateBackwardFromTo(startKey, stopKey, includeStartKey, includeStopKey,false); } else { Backward bw = new Backward((LTrieRootNode)readRootNode); return bw.IterateBackwardFromTo(startKey, stopKey, includeStartKey, includeStopKey,true); } }
public IEnumerable<LTrieRow> IterateBackwardFromTo(byte[] startKey, byte[] stopKey, bool includeStartKey, bool includeStopKey) { this.CheckTableIsOperable(); LTrieRootNode readRootNode = new LTrieRootNode(this); Backward bw = new Backward(readRootNode); return bw.IterateBackwardFromTo(startKey, stopKey, includeStartKey, includeStopKey,true); }