The major change seems to be
interface IterablePosting
{
/** Return true if found another posting */
public boolean next();
/** Return id of the current posting */
public int getId();
}
became
interface IterablePosting
{
public final int EOL = -1;
/** Return docid if found another posting, EOL otherwise */
public int next();
/** Return id of the current posting */
public int getId();
}
I.e. next() method changes from returning boolean to returning docid if posting found, EOL if end of postings.
This reduced one method call (i.e. next() then getId()) in many cases.
Does anyone have an objections to this change being made?
The major change seems to be
became
I.e. next() method changes from returning boolean to returning docid if posting found, EOL if end of postings.
This reduced one method call (i.e. next() then getId()) in many cases.
Does anyone have an objections to this change being made?