|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.query.lucene.LuceneQueryHits
public class LuceneQueryHits
Wraps a lucene query result and adds a close method that allows to release resources after a query has been executed and the results have been read completely.
| Constructor Summary | |
|---|---|
LuceneQueryHits(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.search.IndexSearcher searcher,
org.apache.lucene.search.Query query)
|
|
| Method Summary | |
|---|---|
void |
close()
Releases resources held by this hits instance. |
int |
getSize()
|
ScoreNode |
nextScoreNode()
Returns the next score node in this QueryHits or null if
there are no more score nodes. |
void |
skip(int n)
Skips a n score nodes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LuceneQueryHits(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.search.IndexSearcher searcher,
org.apache.lucene.search.Query query)
throws IOException
IOException| Method Detail |
|---|
public ScoreNode nextScoreNode()
throws IOException
null if
there are no more score nodes.
nextScoreNode in interface QueryHitsIOException - if an error occurs while reading from the index.
public void close()
throws IOException
close in interface CloseableHitsIOException - if an error occurs while releasing resources.public int getSize()
getSize in interface CloseableHits
public void skip(int n)
throws IOException
n score nodes.
skip in interface CloseableHitsn - the number of score nodes to skip.
IOException - if an error occurs while skipping.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||