rmuir commented on pull request #692:
URL: https://github.com/apache/lucene/pull/692#issuecomment-1047729980


   > In my opinion the API as it is today isn't bad. The only thing we might 
want to change is to make `DocIdSetBuilder#grow` take a long instead of an int.
   
   I've really tried, I think I have to just give up. Having a `grow(long)` on 
something with `DocIdSet` in its name is beyond bad, it is terrible.
   
   Please, please, please don't make this change to take a long.
   
   > > I'm still a bit confused about why we need to grow(long) on a bitset 
that can only hold Integer.MAX_VALUE elements.
   > 
   > This doesn't have anything to do with the `long counter` that you looked 
at.
   > 
   > The point of `BulkAdder#add` is to call it every time we find a matching 
(docID, value) pair, and the number of matching pairs may be larger than 
`Integer#MAX_VALUE` (e.g. a range over a multi-valued field that matches all 
docs but one), hence the long. This is the same reason why e.g. 
`SortedSetDocValues#nextOrd` returns a long.
   
   Sure it does. I'm looking at the only code using the 64-bit value, and 
that's the `counter`.


-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to