Class DefaultQueryHits
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.AbstractQueryHits
-
- org.apache.jackrabbit.core.query.lucene.DefaultQueryHits
-
- All Implemented Interfaces:
CloseableHits
,QueryHits
public class DefaultQueryHits extends AbstractQueryHits
-
-
Constructor Summary
Constructors Constructor Description DefaultQueryHits(Collection<ScoreNode> scoreNodes)
Creates a newDefaultQueryHits
instance based on the passedscoreNodes
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSize()
This default implementation returns-1
.ScoreNode
nextScoreNode()
Returns the next score node in this QueryHits ornull
if there are no more score nodes.-
Methods inherited from class org.apache.jackrabbit.core.query.lucene.AbstractQueryHits
close, skip
-
-
-
-
Constructor Detail
-
DefaultQueryHits
public DefaultQueryHits(Collection<ScoreNode> scoreNodes)
Creates a newDefaultQueryHits
instance based on the passedscoreNodes
.- Parameters:
scoreNodes
- a collection ofScoreNode
s.
-
-
Method Detail
-
nextScoreNode
public ScoreNode nextScoreNode() throws IOException
Returns the next score node in this QueryHits ornull
if there are no more score nodes.- Returns:
- the next score node in this QueryHits.
- Throws:
IOException
- if an error occurs while reading from the index.
-
getSize
public int getSize()
This default implementation returns-1
.- Specified by:
getSize
in interfaceCloseableHits
- Overrides:
getSize
in classAbstractQueryHits
- Returns:
-1
.
-
-