uschindler commented on PR #15823:
URL: https://github.com/apache/lucene/pull/15823#issuecomment-4142383523

   This is how it's used in the disj scorer, so only allow to initialize. 
Latter calling addAll would lead to trouble.
   
   So basically a factory method like: produce a PQ with that size and take the 
elements from that stream.
   
   AddAll should not be allowed when heap is already populated because code may 
misuse it and fail suddenly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to