public void seekExact(long ord) throws IOException {if (indexEnum == null) {throw new IllegalStateException("terms index was not loaded");}assert ord < numTerms;in.seek(indexEnum.seek(ord));boolean result = nextBlock();assert result;indexIsCurrent = true;didIndexNext = false;seekPending = false;state.ord = indexEnum.ord()-1;assert state.ord >= -1: "ord=" + state.ord;term.copyBytes(indexEnum.term());int left = (int) (ord - state.ord);while(left > 0) {final BytesRef term = _next();assert term != null;left--;assert indexIsCurrent;}}
public override void SeekExact(long ord){if (indexEnum == null){throw new InvalidOperationException("terms index was not loaded");}Debug.Assert(ord < outerInstance.numTerms);input.Seek(indexEnum.Seek(ord));bool result = NextBlock();Debug.Assert(result);indexIsCurrent = true;didIndexNext = false;blocksSinceSeek = 0;seekPending = false;state.Ord = indexEnum.Ord - 1;Debug.Assert(state.Ord >= -1, "Ord=" + state.Ord);term.CopyBytes(indexEnum.Term);int left = (int)(ord - state.Ord);while (left > 0){BytesRef term = _next();Debug.Assert(term != null);left--;Debug.Assert(indexIsCurrent);}}