Package org.neo4j.gds.core.utils.queue
Class BoundedLongLongPriorityQueue
- java.lang.Object
-
- org.neo4j.gds.core.utils.queue.BoundedLongLongPriorityQueue
-
public abstract class BoundedLongLongPriorityQueue extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBoundedLongLongPriorityQueue.Consumer
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleanadd(long element1, long element2, double priority)java.util.stream.LongStreamelements1()java.util.stream.LongStreamelements2()abstract voidforeach(BoundedLongLongPriorityQueue.Consumer consumer)static BoundedLongLongPriorityQueuemax(int bound)static org.neo4j.gds.core.utils.mem.MemoryEstimationmemoryEstimation(int capacity)static BoundedLongLongPriorityQueuemin(int bound)abstract booleanoffer(long element1, long element2, double priority)java.util.stream.DoubleStreampriorities()intsize()
-
-
-
Method Detail
-
memoryEstimation
public static org.neo4j.gds.core.utils.mem.MemoryEstimation memoryEstimation(int capacity)
-
offer
public abstract boolean offer(long element1, long element2, double priority)
-
foreach
public abstract void foreach(BoundedLongLongPriorityQueue.Consumer consumer)
-
size
public int size()
-
add
protected boolean add(long element1, long element2, double priority)
-
elements1
public java.util.stream.LongStream elements1()
-
elements2
public java.util.stream.LongStream elements2()
-
priorities
public java.util.stream.DoubleStream priorities()
-
max
public static BoundedLongLongPriorityQueue max(int bound)
-
min
public static BoundedLongLongPriorityQueue min(int bound)
-
-