Skip to content

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

Merged
mikemccand merged 14 commits into
apache:mainfrom
dungba88:fst-metadata-save
Jul 22, 2024
Merged

Refactor FST.saveMetadata() to FSTMetadata.save()#13549
mikemccand merged 14 commits into
apache:mainfrom
dungba88:fst-metadata-save

Conversation

@dungba88

@dungba88 dungba88 commented Jul 8, 2024

Copy link
Copy Markdown
Contributor

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.

@mikemccand mikemccand left a comment

Copy link
Copy Markdown
Member

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
@dungba88

Copy link
Copy Markdown
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