public class ChildNodesQueryHits extends AbstractQueryHits
ChildNodesQueryHits
implements query hits that returns the child
nodes of another given query hits.Constructor and Description |
---|
ChildNodesQueryHits(QueryHits parents,
SessionImpl session)
Creates a new
ChildNodesQueryHits that returns the child
nodes of all query hits from the given parents . |
Modifier and Type | Method and Description |
---|---|
void |
close()
This default implementation does nothing.
|
ScoreNode |
nextScoreNode()
Returns the next score node in this QueryHits or
null if
there are no more score nodes. |
getSize, skip
public ChildNodesQueryHits(QueryHits parents, SessionImpl session) throws IOException
ChildNodesQueryHits
that returns the child
nodes of all query hits from the given parents
.parents
- the parent query hits.session
- the session that executes the query.IOException
- if an error occurs while reading from
parents
public void close() throws IOException
close
in interface CloseableHits
close
in class AbstractQueryHits
IOException
- if an error occurs while releasing resources.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–2024 The Apache Software Foundation. All rights reserved.