Class SmallestPriorityQueue
- java.lang.Object
-
- org.apache.sysds.runtime.matrix.data.sketch.countdistinctapprox.SmallestPriorityQueue
-
public class SmallestPriorityQueue extends Object
Deceiving name, but is used to contain the k smallest values inserted. TODO: Replace Standard Java Set and Priority Queue with optimized versions.
-
-
Constructor Summary
Constructors Constructor Description SmallestPriorityQueue(int k)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(double v)
void
clear()
boolean
isEmpty()
double
peek()
double
poll()
int
size()
String
toString()
-