|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.creole.annic.apache.lucene.search.Hits
public final class Hits
A ranked list of documents, used to hold search results.
| Field Summary | |
|---|---|
private Filter |
filter
|
private HitDoc |
first
|
private Vector |
hitDocs
|
private HitDoc |
last
|
private int |
length
|
private int |
maxDocs
|
private int |
numDocs
|
private Query |
query
|
private Searcher |
searcher
|
private Sort |
sort
|
| Constructor Summary | |
|---|---|
Hits(Searcher s,
Query q,
Filter f)
|
|
Hits(Searcher s,
Query q,
Filter f,
Sort o)
|
|
| Method Summary | |
|---|---|
private void |
addToFront(HitDoc hitDoc)
|
Document |
doc(int n)
Returns the stored fields of the nth document in this set. |
private void |
getMoreDocs(int min)
Tries to add new documents to hitDocs. |
private HitDoc |
hitDoc(int n)
|
int |
id(int n)
Returns the id for the nth document in this set. |
int |
length()
Returns the total number of hits available in this set. |
private void |
remove(HitDoc hitDoc)
|
float |
score(int n)
Returns the score for the nth document in this set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Query query
private Searcher searcher
private Filter filter
private Sort sort
private int length
private Vector hitDocs
private HitDoc first
private HitDoc last
private int numDocs
private int maxDocs
| Constructor Detail |
|---|
Hits(Searcher s,
Query q,
Filter f)
throws IOException
IOException
Hits(Searcher s,
Query q,
Filter f,
Sort o)
throws IOException
IOException| Method Detail |
|---|
private final void getMoreDocs(int min)
throws IOException
min has been retrieved.
IOExceptionpublic final int length()
public final Document doc(int n)
throws IOException
Documents are cached, so that repeated requests for the same element may return the same Document object.
IOException
public final float score(int n)
throws IOException
IOException
public final int id(int n)
throws IOException
IOException
private final HitDoc hitDoc(int n)
throws IOException
IOExceptionprivate final void addToFront(HitDoc hitDoc)
private final void remove(HitDoc hitDoc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||