|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.query.lucene.QueryHitsAdapter
public class QueryHitsAdapter
QueryHitsAdapter
implements an adapter for QueryHits
and
exposes them as MultiColumnQueryHits
.
Constructor Summary | |
---|---|
QueryHitsAdapter(QueryHits hits,
Name selectorName)
Creates a new adapter for hits . |
Method Summary | |
---|---|
void |
close()
Releases resources held by this hits instance. |
Name[] |
getSelectorNames()
|
int |
getSize()
|
org.apache.jackrabbit.core.query.lucene.ScoreNode[] |
nextScoreNodes()
Returns the next score nodes 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 QueryHitsAdapter(QueryHits hits, Name selectorName)
hits
.
hits
- the query hits to adapt.selectorName
- the single selector name for the query hits.Method Detail |
---|
public org.apache.jackrabbit.core.query.lucene.ScoreNode[] nextScoreNodes() throws IOException
null
if
there are no more score nodes.
nextScoreNodes
in interface MultiColumnQueryHits
IOException
- if an error occurs while reading from the index.public Name[] getSelectorNames()
getSelectorNames
in interface MultiColumnQueryHits
ScoreNode
s
returned by MultiColumnQueryHits.nextScoreNodes()
.public void close() throws IOException
close
in interface CloseableHits
IOException
- if an error occurs while releasing resources.public int getSize()
getSize
in interface CloseableHits
-1
if the size is unknown.public void skip(int n) throws IOException
n
score nodes.
skip
in interface CloseableHits
n
- 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 |