Class QueryTree.DisjunctionQueryTree

  • Enclosing class:
    QueryTree

    private static class QueryTree.DisjunctionQueryTree
    extends QueryTree
    • 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: QueryTree
        The weight of this node
        Specified by:
        weight in class QueryTree
      • 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 class QueryTree
      • 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 class QueryTree
        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
      • toString

        public java.lang.String toString​(int depth)
        Description copied from class: QueryTree
        Returns a string representation of the node
        Specified by:
        toString in class QueryTree
        Parameters:
        depth - the current depth of this node in the overall query tree