public IterateForwardSkipFrom ( byte initKey, ulong skippingQuantity, bool useCache ) : IEnumerable |
||
initKey | byte | |
skippingQuantity | ulong | |
useCache | bool | |
리턴 | IEnumerable |
public IEnumerable<LTrieRow> IterateForwardSkipFrom(byte[] key, ulong skippingQuantity,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.IterateForwardSkipFrom(key, skippingQuantity,false); } else { Forward bw = new Forward((LTrieRootNode)readRootNode); return bw.IterateForwardSkipFrom(key, skippingQuantity,true); } }
//SKIP FROM public IEnumerable<LTrieRow> IterateForwardSkipFrom(byte[] key, ulong skippingQuantity) { this.CheckTableIsOperable(); LTrieRootNode readRootNode = new LTrieRootNode(this); Forward bw = new Forward(readRootNode); return bw.IterateForwardSkipFrom(key,skippingQuantity,true); }