Class GrowablePriorityLongPairQueue

java.lang.Object
org.apache.pulsar.common.util.collections.GrowablePriorityLongPairQueue

public class GrowablePriorityLongPairQueue extends Object
An unbounded priority queue based on a min heap where values are composed of pairs of longs.

When the capacity is reached, data will be moved to a bigger array. It also act as a set and doesn't store duplicate values if #allowedDuplicate flag is passed false

(long,long)

  • Constructor Details

    • GrowablePriorityLongPairQueue

      public GrowablePriorityLongPairQueue()
    • GrowablePriorityLongPairQueue

      public GrowablePriorityLongPairQueue(int initialCapacity)
  • Method Details