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