public class AncestorNodeJoin extends AbstractCondition
AncestorNodeJoin
implements an ancestor node join condition.inner
Constructor and Description |
---|
AncestorNodeJoin(MultiColumnQueryHits context,
Name contextSelectorName,
org.apache.lucene.index.IndexReader reader,
HierarchyResolver resolver)
Creates a new ancestor node join condition.
|
Modifier and Type | Method and Description |
---|---|
ScoreNode[][] |
getMatchingScoreNodes(ScoreNode ancestor)
Returns the matching inner score nodes for the given outer score node
sn . |
close, getIndex, getInnerSelectorNames
public AncestorNodeJoin(MultiColumnQueryHits context, Name contextSelectorName, org.apache.lucene.index.IndexReader reader, HierarchyResolver resolver) throws IOException
context
- the inner query hits.contextSelectorName
- the selector name for the inner query hits.reader
- the index reader.resolver
- the hierarchy resolver.IOException
- if an error occurs while reading from the index.public ScoreNode[][] getMatchingScoreNodes(ScoreNode ancestor) throws IOException
sn
.
The outer query hits loop contains the ancestor score nodes.
ancestor
- the current score nodes of the outer source.IOException
- if an error occurs while evaluating the condition.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.