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 newDefaultQueryHitsinstance based on the passedscoreNodes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSize()This default implementation returns-1.ScoreNodenextScoreNode()Returns the next score node in this QueryHits ornullif 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 newDefaultQueryHitsinstance based on the passedscoreNodes.- Parameters:
scoreNodes- a collection ofScoreNodes.
-
-
Method Detail
-
nextScoreNode
public ScoreNode nextScoreNode() throws IOException
Returns the next score node in this QueryHits ornullif 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:
getSizein interfaceCloseableHits- Overrides:
getSizein classAbstractQueryHits- Returns:
-1.
-
-