Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor FST.saveMetadata() to FSTMetadata.save() #13549

Merged
merged 14 commits into from
Jul 22, 2024

Conversation

dungba88
Copy link
Contributor

@dungba88 dungba88 commented Jul 8, 2024

Description

A precursor change for both #12985 and #13054. These are cases where we only want to save the FST metadata without the need to construct a FST object. Move the save method out of FST enable these use cases.

Copy link
Member

@mikemccand mikemccand left a comment

Choose a reason for hiding this comment

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

Thanks @dungba88 -- this looks like a simple refactoring, and makes it easier for other uses (the two PRs you linked) to separately save the FSTMetadata.

@mikemccand mikemccand merged commit 97d89c6 into apache:main Jul 22, 2024
3 checks passed
@dungba88
Copy link
Contributor Author

Thank you for merging @mikemccand !

mikemccand pushed a commit that referenced this pull request Jul 23, 2024
* lazily write the FST padding byte

* Also write the pad byte when there is emptyOutput

* add comment

* Make Lucene90BlockTreeTermsWriter to write FST off-heap

* Add change log

* Tidy code & Add comments

* use temp IndexOutput for FST writing

* Use IOUtils to delete files

* Update CHANGES.txt

* Update CHANGES.txt
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