Package org.neo4j.gds.core.utils.queue
Class BoundedLongPriorityQueue
- java.lang.Object
-
- org.neo4j.gds.core.utils.queue.BoundedLongPriorityQueue
-
public abstract class BoundedLongPriorityQueue extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBoundedLongPriorityQueue.Consumer
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleanadd(long element, double priority)booleancontains(long element)longelementAt(int index)java.util.stream.LongStreamelements()abstract voidforEach(BoundedLongPriorityQueue.Consumer consumer)static BoundedLongPriorityQueuemax(int bound)static org.neo4j.gds.core.utils.mem.MemoryEstimationmemoryEstimation(int capacity)static BoundedLongPriorityQueuemin(int bound)abstract booleanoffer(long element, double priority)java.util.stream.DoubleStreampriorities()intsize()voidupdateElementAt(int index, long newElement)
-
-
-
Method Detail
-
memoryEstimation
public static org.neo4j.gds.core.utils.mem.MemoryEstimation memoryEstimation(int capacity)
-
offer
public abstract boolean offer(long element, double priority)
-
forEach
public abstract void forEach(BoundedLongPriorityQueue.Consumer consumer)
-
elements
public java.util.stream.LongStream elements()
-
priorities
public java.util.stream.DoubleStream priorities()
-
size
public int size()
-
contains
public boolean contains(long element)
-
elementAt
public long elementAt(int index)
-
updateElementAt
public void updateElementAt(int index, long newElement)
-
add
protected boolean add(long element, double priority)
-
max
public static BoundedLongPriorityQueue max(int bound)
-
min
public static BoundedLongPriorityQueue min(int bound)
-
-