In case next() has never been called on an iterator, docId() returns 0
(it points before the first element). Only break the loop when next()
returns 0.
Details
Details
- Reviewers
ngraham - Group Reviewers
Baloo - Commits
- R293:dd1b7a6d02a5: [PostingIterator] Make sure skipTo also works for first element
Diff Detail
Diff Detail
- Repository
- R293 Baloo
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.