Methods Summary |
---|
public final void | close()
super.close();
proxStream.close();
|
public final boolean | next()
for (int f = proxCount; f > 0; f--) // skip unread positions
proxStream.readVInt();
if (super.next()) { // run super
proxCount = freq; // note frequency
position = 0; // reset position
return true;
}
return false;
|
public final int | nextPosition()
proxCount--;
return position += proxStream.readVInt();
|
public final int | read(int[] docs, int[] freqs)
throw new UnsupportedOperationException("TermPositions does not support processing multiple documents in one call. Use TermDocs instead.");
|
final void | seek(org.apache.lucene.index.TermInfo ti)
super.seek(ti);
if (ti != null)
proxStream.seek(ti.proxPointer);
proxCount = 0;
|
protected void | skipProx(long proxPointer)Called by super.skipTo().
proxStream.seek(proxPointer);
proxCount = 0;
|
protected final void | skippingDoc()
for (int f = freq; f > 0; f--) // skip all positions
proxStream.readVInt();
|