public class NodeTraversingQueryHits extends AbstractQueryHits
NodeTraversingQueryHits
implements query hits that traverse
a node hierarchy.Constructor and Description |
---|
NodeTraversingQueryHits(Node start,
boolean includeStart)
Creates query hits that consist of the nodes that are traversed from a
given
start node. |
NodeTraversingQueryHits(Node start,
boolean includeStart,
int maxDepth)
Creates query hits that consist of the nodes that are traversed from a
given
start node. |
Modifier and Type | Method and Description |
---|---|
ScoreNode |
nextScoreNode()
Returns the next score node in this QueryHits or
null if
there are no more score nodes. |
close, getSize, skip
public NodeTraversingQueryHits(Node start, boolean includeStart)
start
node.start
- the start node of the traversal.includeStart
- whether to include the start node in the result.public NodeTraversingQueryHits(Node start, boolean includeStart, int maxDepth)
start
node.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.public ScoreNode nextScoreNode() throws IOException
null
if
there are no more score nodes.IOException
- if an error occurs while reading from the index.Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.