org.apache.jackrabbit.core.query.lucene
Class NodeTraversingQueryHits

java.lang.Object
  extended by org.apache.jackrabbit.core.query.lucene.AbstractQueryHits
      extended by org.apache.jackrabbit.core.query.lucene.NodeTraversingQueryHits
All Implemented Interfaces:
CloseableHits, QueryHits

public class NodeTraversingQueryHits
extends AbstractQueryHits

NodeTraversingQueryHits implements query hits that traverse a node hierarchy.


Constructor Summary
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.
 
Method Summary
 ScoreNode nextScoreNode()
          Returns the next score node in this QueryHits or null if there are no more score nodes.
 
Methods inherited from class org.apache.jackrabbit.core.query.lucene.AbstractQueryHits
close, getSize, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeTraversingQueryHits

public NodeTraversingQueryHits(Node start,
                               boolean includeStart)
Creates query hits that consist of the nodes that are traversed from a given start node.

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 given start node.

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 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.