org.apache.lucene.search

## Class DisiPriorityQueue

- java.lang.Object
- - org.apache.lucene.search.DisiPriorityQueue

- All Implemented Interfaces:
    Iterable<DisiWrapper>

      public final class DisiPriorityQueue
      extends Object
      implements Iterable<DisiWrapper>

  A priority queue of DocIdSetIterators that orders by current doc ID. This specialization is needed over `PriorityQueue` because the pluggable comparison function makes the rebalancing quite slow.
  NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DisiPriorityQueue(int maxSize)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `DisiWrapper` | `add(DisiWrapper entry)`
    `Iterator<DisiWrapper>` | `iterator()`
    `DisiWrapper` | `pop()`
    `int` | `size()`
    `DisiWrapper` | `top()`
    `DisiWrapper` | `topList()` Get the list of scorers which are on the current doc.
    `DisiWrapper` | `updateTop()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, spliterator`

- - ### Constructor Detail

    - #### DisiPriorityQueue

          public DisiPriorityQueue(int maxSize)

  - ### Method Detail

    - #### size

          public int size()

    - #### top

          public DisiWrapper top()

    - #### topList

          public DisiWrapper topList()

      Get the list of scorers which are on the current doc.

    - #### add

          public DisiWrapper add(DisiWrapper entry)

    - #### pop

          public DisiWrapper pop()

    - #### updateTop

          public DisiWrapper updateTop()

    - #### iterator

          public Iterator<DisiWrapper> iterator()

      Specified by:
        `iterator` in interface `Iterable<DisiWrapper>`

Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.