|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.creole.annic.apache.lucene.index.MultiTermDocs
class MultiTermDocs
| Field Summary | |
|---|---|
protected int |
base
|
protected TermDocs |
current
|
protected int |
pointer
|
protected IndexReader[] |
readers
|
private TermDocs[] |
readerTermDocs
|
protected int[] |
starts
|
protected Term |
term
|
| Constructor Summary | |
|---|---|
MultiTermDocs(IndexReader[] r,
int[] s)
|
|
| 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. |
boolean |
skipTo(int target)
As yet unoptimized implementation. |
protected TermDocs |
termDocs(IndexReader reader)
|
private TermDocs |
termDocs(int i)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IndexReader[] readers
protected int[] starts
protected Term term
protected int base
protected int pointer
private TermDocs[] readerTermDocs
protected TermDocs current
| Constructor Detail |
|---|
public MultiTermDocs(IndexReader[] r,
int[] s)
| Method Detail |
|---|
public int doc()
TermDocs This is invalid until TermDocs.next() is called for the first time.
doc in interface TermDocspublic int freq()
TermDocs This
is invalid until TermDocs.next() is called for the first time.
freq in interface TermDocspublic void seek(Term term)
TermDocs
seek in interface TermDocs
public void seek(TermEnum termEnum)
throws IOException
TermDocsTermEnum.
This may be optimized in some implementations.
seek in interface TermDocsIOException
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
public boolean skipTo(int target)
throws IOException
skipTo in interface TermDocsIOException
private TermDocs termDocs(int i)
throws IOException
IOException
protected TermDocs termDocs(IndexReader reader)
throws IOException
IOException
public void close()
throws IOException
TermDocs
close in interface TermDocsIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||