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