|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.creole.annic.apache.lucene.index.SegmentTermDocs
class SegmentTermDocs
| Field Summary | |
|---|---|
private int |
count
|
private BitVector |
deletedDocs
|
private int |
df
|
(package private) int |
doc
|
(package private) int |
freq
|
private long |
freqPointer
|
private InputStream |
freqStream
|
private boolean |
haveSkipped
|
private int |
numSkips
|
protected SegmentReader |
parent
|
private long |
proxPointer
|
private int |
skipCount
|
private int |
skipDoc
|
private int |
skipInterval
|
private long |
skipPointer
|
private InputStream |
skipStream
|
| Constructor Summary | |
|---|---|
SegmentTermDocs(SegmentReader parent)
|
|
| Method Summary | |
|---|---|
void |
close()
Frees associated resources. |
int |
doc()
Returns the current document number. |
int |
freq()
Returns the frequency of the term within the current document. |
boolean |
next()
Moves to the next pair in the enumeration. |
int |
read(int[] docs,
int[] freqs)
Optimized implementation. |
void |
seek(Term term)
Sets this to the data for a term. |
void |
seek(TermEnum termEnum)
Sets this to the data for the current term in a TermEnum. |
(package private) void |
seek(TermInfo ti)
|
protected void |
skippingDoc()
|
protected void |
skipProx(long proxPointer)
Overridden by SegmentTermPositions to skip in prox stream. |
boolean |
skipTo(int target)
Optimized implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SegmentReader parent
private InputStream freqStream
private int count
private int df
private BitVector deletedDocs
int doc
int freq
private int skipInterval
private int numSkips
private int skipCount
private InputStream skipStream
private int skipDoc
private long freqPointer
private long proxPointer
private long skipPointer
private boolean haveSkipped
| Constructor Detail |
|---|
SegmentTermDocs(SegmentReader parent)
throws IOException
IOException| Method Detail |
|---|
public void seek(Term term)
throws IOException
TermDocs
seek in interface TermDocsIOException
public void seek(TermEnum termEnum)
throws IOException
TermDocsTermEnum.
This may be optimized in some implementations.
seek in interface TermDocsIOException
void seek(TermInfo ti)
throws IOException
IOException
public void close()
throws IOException
TermDocs
close in interface TermDocsIOExceptionpublic final int doc()
TermDocs This is invalid until TermDocs.next() is called for the first time.
doc in interface TermDocspublic final int freq()
TermDocs This
is invalid until TermDocs.next() is called for the first time.
freq in interface TermDocs
protected void skippingDoc()
throws IOException
IOException
public boolean next()
throws IOException
TermDocsReturns true iff there is such a next pair in the enumeration.
next in interface TermDocsIOException
public int read(int[] docs,
int[] freqs)
throws IOException
read in interface TermDocsIOException
protected void skipProx(long proxPointer)
throws IOException
IOException
public boolean skipTo(int target)
throws IOException
skipTo in interface TermDocsIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||