Package org.apache.lucene.monitor
Class QueryTree.ConjunctionQueryTree
- java.lang.Object
-
- org.apache.lucene.monitor.QueryTree
-
- org.apache.lucene.monitor.QueryTree.ConjunctionQueryTree
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<QueryTree>
children
private static java.util.Comparator<QueryTree>
COMPARATOR
-
Constructor Summary
Constructors Constructor Description ConjunctionQueryTree(java.util.List<QueryTree> children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
advancePhase(double minWeight)
Find the next-most highly-weighted path below this nodevoid
collectTerms(java.util.function.BiConsumer<java.lang.String,BytesRef> termCollector)
Collect terms from the most highly-weighted path below this nodejava.lang.String
toString(int depth)
Returns a string representation of the nodedouble
weight()
The weight of this node-
Methods inherited from class org.apache.lucene.monitor.QueryTree
anyTerm, conjunction, conjunction, disjunction, disjunction, space, term, term, term, toString
-
-
-
-
Constructor Detail
-
ConjunctionQueryTree
ConjunctionQueryTree(java.util.List<QueryTree> children)
-
-
Method Detail
-
weight
public double weight()
Description copied from class:QueryTree
The weight of this node
-
collectTerms
public void collectTerms(java.util.function.BiConsumer<java.lang.String,BytesRef> termCollector)
Description copied from class:QueryTree
Collect terms from the most highly-weighted path below this node- Specified by:
collectTerms
in classQueryTree
-
advancePhase
public boolean advancePhase(double minWeight)
Description copied from class:QueryTree
Find the next-most highly-weighted path below this node- Specified by:
advancePhase
in classQueryTree
- Parameters:
minWeight
- do not advance if the next path has a weight below this value- Returns:
false
if there are no more paths above the minimum weight
-
-