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

java.lang.Object
  extended by org.apache.jackrabbit.core.query.lucene.AbstractQueryHits
      extended by 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
ChildNodesQueryHits(QueryHits parents, SessionImpl session)
          Creates a new ChildNodesQueryHits that returns the child nodes of all query hits from the given parents.
 
Method Summary
 void close()
          This default implemetation does nothing.
 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
getSize, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildNodesQueryHits

public ChildNodesQueryHits(QueryHits parents,
                           SessionImpl session)
                    throws IOException
Creates a new ChildNodesQueryHits that returns the child nodes of all query hits from the given parents.

Parameters:
parents - the parent query hits.
session - the session that executes the query.
Throws:
IOException - if an error occurs while reading from parents
Method Detail

close

public void close()
           throws IOException
This default implemetation does nothing.

Specified by:
close in interface CloseableHits
Overrides:
close in class AbstractQueryHits
Throws:
IOException - if an error occurs while releasing resources.

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.