Added comments in TopNNumericResultBuilder

This commit is contained in:
Charles Allen 2014-11-07 11:01:46 -08:00
parent b4893b4490
commit 75c79e7562
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}