Class NodeTraversingQueryHits
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.AbstractQueryHits
-
- org.apache.jackrabbit.core.query.lucene.NodeTraversingQueryHits
-
- All Implemented Interfaces:
CloseableHits,QueryHits
public class NodeTraversingQueryHits extends AbstractQueryHits
NodeTraversingQueryHitsimplements query hits that traverse a node hierarchy.
-
-
Constructor Summary
Constructors Constructor Description NodeTraversingQueryHits(Node start, boolean includeStart)Creates query hits that consist of the nodes that are traversed from a givenstartnode.NodeTraversingQueryHits(Node start, boolean includeStart, int maxDepth)Creates query hits that consist of the nodes that are traversed from a givenstartnode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, getSize, skip
-
-
-
-
Constructor Detail
-
NodeTraversingQueryHits
public NodeTraversingQueryHits(Node start, boolean includeStart)
Creates query hits that consist of the nodes that are traversed from a givenstartnode.- Parameters:
start- the start node of the traversal.includeStart- whether to include the start node in the result.
-
NodeTraversingQueryHits
public NodeTraversingQueryHits(Node start, boolean includeStart, int maxDepth)
Creates query hits that consist of the nodes that are traversed from a givenstartnode.- Parameters:
start- the start node of the traversal.includeStart- whether to include the start node in the result.maxDepth- the maximum depth of nodes to traverse.
-
-
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.
-
-