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
ChildNodesQueryHitsimplements query hits that returns the child nodes of another given query hits.
-
-
Constructor Summary
Constructors Constructor Description ChildNodesQueryHits(QueryHits parents, SessionImpl session)Creates a newChildNodesQueryHitsthat returns the child nodes of all query hits from the givenparents.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()This default implementation does nothing.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
getSize, skip
-
-
-
-
Constructor Detail
-
ChildNodesQueryHits
public ChildNodesQueryHits(QueryHits parents, SessionImpl session) throws IOException
Creates a newChildNodesQueryHitsthat returns the child nodes of all query hits from the givenparents.- Parameters:
parents- the parent query hits.session- the session that executes the query.- Throws:
IOException- if an error occurs while reading fromparents
-
-
Method Detail
-
close
public void close() throws IOExceptionThis default implementation does nothing.- Specified by:
closein interfaceCloseableHits- Overrides:
closein classAbstractQueryHits- Throws:
IOException- if an error occurs while releasing resources.
-
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.
-
-