org.apache.jackrabbit.core.query.lucene
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
DefaultQueryHits implements QueryHits based on a
collection of ScoreNodes.
|
Constructor Summary |
DefaultQueryHits(Collection scoreNodes)
Creates a new DefaultQueryHits instance based on the passed
scoreNodes. |
|
Method Summary |
int |
getSize()
This default implementation returns -1. |
ScoreNode |
nextScoreNode()
Returns the next score node in this QueryHits or null if
there are no more score nodes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultQueryHits
public DefaultQueryHits(Collection scoreNodes)
- Creates a new
DefaultQueryHits instance based on the passed
scoreNodes.
- Parameters:
scoreNodes - a collection of ScoreNodes.
nextScoreNode
public ScoreNode nextScoreNode()
throws IOException
- Returns the next score node in this QueryHits or
null 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 interface CloseableHits- Overrides:
getSize in class AbstractQueryHits
- Returns:
-1.
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.