19 using Lucene.Net.Support;
21 namespace Lucene.Net.Index
35 internal int numPostings;
41 internal int textOffset;
43 private int postingUpto = - 1;
49 internal int termFreq;
54 this.charPool = field.perThread.termsHashPerThread.charPool;
55 this.numPostings = field.termsHashPerField.numPostings;
59 internal bool NextTerm()
62 if (postingUpto == numPostings)
68 text = charPool.buffers[p.textStart >>
DocumentsWriter.CHAR_BLOCK_SHIFT];
71 field.termsHashPerField.InitReader(freq, p, 0);
72 if (!field.fieldInfo.omitTermFreqAndPositions)
73 field.termsHashPerField.InitReader(prox, p, 1);
76 bool result = NextDoc();
77 System.Diagnostics.Debug.Assert(result);
86 if (p.lastDocCode != - 1)
90 if (!field.omitTermFreqAndPositions)
100 int code = freq.ReadVInt();
101 if (field.omitTermFreqAndPositions)
109 termFreq = freq.ReadVInt();
112 System.Diagnostics.Debug.Assert(docID != p.lastDocID);