|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.query.lucene.AbstractQueryHits
org.apache.jackrabbit.core.query.lucene.LuceneQueryHits
public class LuceneQueryHits
Wraps the lucene Hits
object 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.search.Hits hits,
org.apache.lucene.index.IndexReader reader)
Creates a new QueryHits instance wrapping hits . |
Method Summary | |
---|---|
int |
getSize()
This default implementation returns -1 . |
org.apache.jackrabbit.core.query.lucene.ScoreNode |
nextScoreNode()
Returns the next score node in this QueryHits or null if
there are no more score nodes. |
void |
skip(int n)
Skips n hits. |
Methods inherited from class org.apache.jackrabbit.core.query.lucene.AbstractQueryHits |
---|
close |
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.search.Hits hits, org.apache.lucene.index.IndexReader reader)
QueryHits
instance wrapping hits
.
hits
- the lucene hits.reader
- the IndexReader in use by hits
.Method Detail |
---|
public final int getSize()
-1
.
getSize
in interface CloseableHits
getSize
in class AbstractQueryHits
-1
.public final org.apache.jackrabbit.core.query.lucene.ScoreNode nextScoreNode() throws IOException
null
if
there are no more score nodes.
IOException
- if an error occurs while reading from the index.public void skip(int n) throws IOException
n
hits.
skip
in interface CloseableHits
skip
in class AbstractQueryHits
n
- the number of hits 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 |