/// <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);
}