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

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