org.apache.jackrabbit.core.query.lucene
Class ChildNodesQueryHits
java.lang.Object
org.apache.jackrabbit.core.query.lucene.AbstractQueryHits
org.apache.jackrabbit.core.query.lucene.ChildNodesQueryHits
- All Implemented Interfaces:
- CloseableHits, QueryHits
public class ChildNodesQueryHits
- extends AbstractQueryHits
ChildNodesQueryHits implements query hits that returns the child
nodes of another given query hits.
|
Method Summary |
void |
close()
This default implemetation does nothing. |
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 |
ChildNodesQueryHits
public ChildNodesQueryHits(QueryHits parents,
SessionImpl session)
throws IOException
- Creates a new
ChildNodesQueryHits that returns the child
nodes of all query hits from the given parents.
- Parameters:
parents - the parent query hits.session - the session that executes the query.
- Throws:
IOException - if an error occurs while reading from
parents
close
public void close()
throws IOException
- This default implemetation does nothing.
- Specified by:
close in interface CloseableHits- Overrides:
close in class AbstractQueryHits
- Throws:
IOException - if an error occurs while releasing resources.
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.
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.