gate.creole.annic.apache.lucene.index
Class SegmentTermPositions
java.lang.Object
gate.creole.annic.apache.lucene.index.SegmentTermDocs
gate.creole.annic.apache.lucene.index.SegmentTermPositions
- All Implemented Interfaces:
- TermDocs, TermPositions
final class SegmentTermPositions
- extends SegmentTermDocs
- implements TermPositions
|
Method Summary |
void |
close()
Frees associated resources. |
boolean |
next()
Moves to the next pair in the enumeration. |
int |
nextPosition()
Returns next position in the current document. |
int |
read(int[] docs,
int[] freqs)
Optimized implementation. |
(package private) void |
seek(TermInfo ti)
|
protected void |
skippingDoc()
|
protected void |
skipProx(long proxPointer)
Called by super.skipTo(). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
proxStream
private InputStream proxStream
proxCount
private int proxCount
position
private int position
SegmentTermPositions
SegmentTermPositions(SegmentReader p)
throws IOException
- Throws:
IOException
seek
final void seek(TermInfo ti)
throws IOException
- Overrides:
seek in class SegmentTermDocs
- Throws:
IOException
close
public final void close()
throws IOException
- Description copied from interface:
TermDocs
- Frees associated resources.
- Specified by:
close in interface TermDocs- Overrides:
close in class SegmentTermDocs
- Throws:
IOException
nextPosition
public final int nextPosition()
throws IOException
- Description copied from interface:
TermPositions
- Returns next position in the current document. It is an error to call
this more than
TermDocs.freq() times
without calling TermDocs.next() This is
invalid until TermDocs.next() is called for
the first time.
- Specified by:
nextPosition in interface TermPositions
- Throws:
IOException
skippingDoc
protected final void skippingDoc()
throws IOException
- Overrides:
skippingDoc in class SegmentTermDocs
- Throws:
IOException
next
public final boolean next()
throws IOException
- Description copied from interface:
TermDocs
- Moves to the next pair in the enumeration.
Returns true iff there is
such a next pair in the enumeration.
- Specified by:
next in interface TermDocs- Overrides:
next in class SegmentTermDocs
- Throws:
IOException
read
public final int read(int[] docs,
int[] freqs)
throws IOException
- Description copied from class:
SegmentTermDocs
- Optimized implementation.
- Specified by:
read in interface TermDocs- Overrides:
read in class SegmentTermDocs
- Throws:
IOException
skipProx
protected void skipProx(long proxPointer)
throws IOException
- Called by super.skipTo().
- Overrides:
skipProx in class SegmentTermDocs
- Throws:
IOException