Skip to content

Remove IOException from LeafReader#getDocCount signature#16059

Merged
iverase merged 2 commits into
apache:mainfrom
iverase:LeafReader#getDocCount
May 13, 2026
Merged

Remove IOException from LeafReader#getDocCount signature#16059
iverase merged 2 commits into
apache:mainfrom
iverase:LeafReader#getDocCount

Conversation

@iverase
Copy link
Copy Markdown
Contributor

@iverase iverase commented May 13, 2026

The current lucene implementation does not perform any IO in this method so removing it gives a clear indication that calling it should be "cheap".

relates #16052

Copy link
Copy Markdown
Contributor

@romseygeek romseygeek left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread lucene/CHANGES.txt Outdated
@iverase iverase merged commit 603d979 into apache:main May 13, 2026
13 checks passed
@iverase iverase deleted the LeafReader#getDocCount branch May 13, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants