mirror of https://github.com/apache/druid.git
Added comments in TopNNumericResultBuilder
This commit is contained in:
parent
b4893b4490
commit
75c79e7562
|
@ -105,6 +105,7 @@ public class TopNNumericResultBuilder implements TopNResultBuilder
|
|||
}
|
||||
};
|
||||
|
||||
// The logic in addEntry first adds, then removes if needed. So it can at any point have up to threshold + 1 entries.
|
||||
pQueue = new PriorityQueue<>(this.threshold + 1, this.dimValComparator);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue