Skip to content

LUCENE-10262: Lift up restrictions for navigating PointValues#PointTree#476

Merged
iverase merged 4 commits into
apache:mainfrom
iverase:LUCENE-10262
Nov 26, 2021
Merged

LUCENE-10262: Lift up restrictions for navigating PointValues#PointTree#476
iverase merged 4 commits into
apache:mainfrom
iverase:LUCENE-10262

Conversation

@iverase
Copy link
Copy Markdown
Contributor

@iverase iverase commented Nov 25, 2021

@iverase iverase requested a review from jpountz November 25, 2021 11:11
Copy link
Copy Markdown
Contributor

@jpountz jpountz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes the API much easier to use!

// move position of the inner nodes index in case we move to the first child
assert readNodeDataPositions[level] < innerNodes.getFilePointer();
innerNodes.seek(readNodeDataPositions[level]);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seek should be cheap, I wonder if we could call it resetNodeDataPosition() and change the impl to call seek unconditionally?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, quick check and it makes no difference.

addOneByOne(visitor);
}

public void addOneByOne(PointValues.IntersectVisitor visitor) throws IOException {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe give it a more explicit name, e.g. visitLeavesOneByOne?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@iverase iverase merged commit a590c6d into apache:main Nov 26, 2021
@iverase iverase deleted the LUCENE-10262 branch November 26, 2021 06:42
iverase added a commit that referenced this pull request Nov 26, 2021
…ee (#476)

This change allows random navigation of a PointValues#PointTree.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants