bruno-roustant commented on a change in pull request #1070: LUCENE-9089: FST
Builder fluent-style constructor.
URL: https://github.com/apache/lucene-solr/pull/1070#discussion_r356859550
##########
File path: lucene/core/src/java/org/apache/lucene/util/fst/Builder.java
##########
@@ -205,22 +156,145 @@ public Builder(FST.INPUT_TYPE inputType, int
minSuffixCount1, int minSuffixCount
}
/**
- * Overrides the default the maximum oversizing of fixed array allowed to
enable direct addressing
- * of arcs instead of binary search.
+ * Fluent-style constructor for FST {@link Builder}.
* <p>
- * Setting this factor to a negative value (e.g. -1) effectively disables
direct addressing,
- * only binary search nodes will be created.
- *
- * @see #DIRECT_ADDRESSING_MAX_OVERSIZING_FACTOR
+ * Creates an FST/FSA builder with all the possible tuning and construction
tweaks.
+ * Read parameter documentation carefully.
*/
- public Builder<T> setDirectAddressingMaxOversizingFactor(float factor) {
- directAddressingMaxOversizingFactor = factor;
- return this;
+ public static class Constructor<T> {
Review comment:
I have a preference for fst.FSTCompiler. This may seem redundant when
looking at the full path, but inside some code it is clearer to see FSTCompiler
than just Compiler. So I'll go with FSTCompiler.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]