| Message view | « Date » · « Thread » |
|---|---|
| Top | « Date » · « Thread » |
| From | Dmitry Serebrennikov <dmit...@earthlink.net> |
| Subject | skipTo() |
| Date | Thu, 11 Oct 2001 01:29:35 GMT |
Greetings,
Doesn't this implementation of skipTo(int target) fail when the TermDocs
is already set on the target?
I got this one out of SegmentsTermDocs in SegmentsReader.java, but I
think there are many copies of this code in other places.
======================
public boolean skipTo(int target) throws IOException {
do {
if (!next())
return false;
} while (target > doc());
return true;
}
======================
| |
| Mime |
|
| View raw message | |