[TR-229] BasicIterablePosting next(int) Created: 12/Jun/13  Updated: 18/Jul/13  Resolved: 18/Jul/13

Status: Resolved
Project: Terrier Core
Component/s: .structures
Affects Version/s: 3.5
Fix Version/s: 3.6

Type: Bug Priority: Trivial
Reporter: Matteo Catena Assignee: Craig Macdonald
Resolution: Fixed  
Labels: None


 Description   
when you do next(x) and x is larger than any docId in a posting list, terrier goes into an infinite loop.

possible solution:
do
{
if (this.next() == EOL) return EOL;

} while(this.getId() < target);
return this.getId();

 Comments   
Comment by Craig Macdonald [ 18/Jul/13 ]

Committed r3705

Generated at Sat Dec 16 03:16:40 GMT 2017 using JIRA 7.1.1#71004-sha1:d6b2c0d9b7051e9fb5e4eb8ce177ca56d91d7bd8.