internal override void Seek(TermInfo ti, Term term) { base.Seek(ti, term); if (ti != null) { lazySkipPointer = ti.ProxPointer; } lazySkipProxCount = 0; proxCount = 0; payloadLength = 0; needToLoadPayload = false; }
// called only from asserts private static bool SameTermInfo(TermInfo ti1, TermInfo ti2, SegmentTermEnum enumerator) // LUCENENET: CA1822: Mark members as static { if (ti1.DocFreq != ti2.DocFreq) { return(false); } if (ti1.FreqPointer != ti2.FreqPointer) { return(false); } if (ti1.ProxPointer != ti2.ProxPointer) { return(false); } // skipOffset is only valid when docFreq >= skipInterval: if (ti1.DocFreq >= enumerator.skipInterval && ti1.SkipOffset != ti2.SkipOffset) { return(false); } return(true); }
// called only from asserts private bool SameTermInfo(TermInfo ti1, TermInfo ti2, SegmentTermEnum enumerator) { if (ti1.DocFreq != ti2.DocFreq) { return(false); } if (ti1.FreqPointer != ti2.FreqPointer) { return(false); } if (ti1.ProxPointer != ti2.ProxPointer) { return(false); } // skipOffset is only valid when docFreq >= skipInterval: if (ti1.DocFreq >= enumerator.skipInterval && ti1.SkipOffset != ti2.SkipOffset) { return(false); } return(true); }
internal virtual void Seek(TermInfo ti, Term term) { m_count = 0; FieldInfo fi = fieldInfos.FieldInfo(term.Field); this.m_indexOptions = (fi != null) ? fi.IndexOptions : IndexOptions.DOCS_AND_FREQS_AND_POSITIONS; m_currentFieldStoresPayloads = (fi != null) && fi.HasPayloads; if (ti == null) { m_df = 0; } else { m_df = ti.DocFreq; doc = 0; freqBasePointer = ti.FreqPointer; proxBasePointer = ti.ProxPointer; skipPointer = freqBasePointer + ti.SkipOffset; m_freqStream.Seek(freqBasePointer); haveSkipped = false; } }
public virtual void Seek(Term term) { TermInfo ti = tis.Get(term); Seek(ti, term); }
internal void TermInfo(TermInfo ti) { ti.Set(termInfo); }
public TermInfoAndOrd(TermInfo ti, long termOrd) : base(ti) { Debug.Assert(termOrd >= 0); this.termOrd = termOrd; }