/// <summary> /// Increments the enumeration to the next element. True if one exists. </summary> public bool Next() { prevBuffer.Set(termBuffer); //System.out.println(" ste setPrev=" + prev() + " this=" + this); if (position++ >= size - 1) { termBuffer.Reset(); //System.out.println(" EOF"); return(false); } termBuffer.Read(input, fieldInfos); newSuffixStart = termBuffer.newSuffixStart; termInfo.DocFreq = input.ReadVInt32(); // read doc freq termInfo.FreqPointer += input.ReadVInt64(); // read freq pointer termInfo.ProxPointer += input.ReadVInt64(); // read prox pointer if (termInfo.DocFreq >= skipInterval) { termInfo.SkipOffset = input.ReadVInt32(); } if (isIndex) { indexPointer += input.ReadVInt64(); // read index pointer } //System.out.println(" ste ret term=" + term()); return(true); }
/// <summary> /// Increments the enumeration to the next element. True if one exists. </summary> public bool Next() { PrevBuffer.Set(TermBuffer); //System.out.println(" ste setPrev=" + prev() + " this=" + this); if (Position++ >= Size - 1) { TermBuffer.Reset(); //System.out.println(" EOF"); return(false); } TermBuffer.Read(Input, FieldInfos); NewSuffixStart = TermBuffer.NewSuffixStart; TermInfo_Renamed.DocFreq = Input.ReadVInt(); // read doc freq TermInfo_Renamed.FreqPointer += Input.ReadVLong(); // read freq pointer TermInfo_Renamed.ProxPointer += Input.ReadVLong(); // read prox pointer if (TermInfo_Renamed.DocFreq >= SkipInterval) { TermInfo_Renamed.SkipOffset = Input.ReadVInt(); } if (IsIndex) { IndexPointer += Input.ReadVLong(); // read index pointer } //System.out.println(" ste ret term=" + term()); return(true); }
internal void Seek(long pointer, long p, Term t, TermInfo ti) { input.Seek(pointer); position = p; termBuffer.Set(t); prevBuffer.Reset(); //System.out.println(" ste doSeek prev=" + prevBuffer.toTerm() + " this=" + this); termInfo.Set(ti); first = p == -1; }
internal void Seek(long pointer, long p, Term t, TermInfo ti) { Input.Seek(pointer); Position = p; TermBuffer.Set(t); PrevBuffer.Reset(); //System.out.println(" ste doSeek prev=" + prevBuffer.toTerm() + " this=" + this); TermInfo_Renamed.Set(ti); First = p == -1; }