Ignacio Vera created LUCENE-9284: ------------------------------------ Summary: BKDWriter refactor: Extract methods that serialise the tree into its own class Key: LUCENE-9284 URL: https://issues.apache.org/jira/browse/LUCENE-9284 Project: Lucene - Core Issue Type: Improvement Reporter: Ignacio Vera
Currently the class {{BKDWriter}} contains the logic to build the tree and serialise the tree. This makes the class difficult to understand and difficult to maintain. In this issue it is only proposed to move the methods the serialise the tree into the index to its own class called {{BKDIndexWriter}}. This class contains just two methods, one to write the leaf nodes and one to write the inner nodes. While working on this, I wonder if the indexWriter should be an interface so we can get rid of {{SimpleTextBKDWriter}} and just use a different serialisation class for that case. I left that for some further improvement. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org