Package org.apache.lucene.util.automaton
Class DaciukMihovAutomatonBuilder
- java.lang.Object
-
- org.apache.lucene.util.automaton.DaciukMihovAutomatonBuilder
-
@Deprecated public final class DaciukMihovAutomatonBuilder extends Object
Deprecated.Visibility of this class will be reduced in a future release. Users can access this functionality directly throughAutomata.makeStringUnion(Iterable)
Builds a minimal, deterministicAutomaton
that accepts a set of strings. The algorithm requires sorted input data, but is very fast (nearly linear with the input size).
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_TERM_LENGTH
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Automaton
build(Iterable<BytesRef> input)
Deprecated.Please seeAutomata.makeStringUnion(Iterable)
instead
-
-
-
Field Detail
-
MAX_TERM_LENGTH
@Deprecated public static final int MAX_TERM_LENGTH
Deprecated.This builder rejects terms that are more than 1k chars long since it then uses recursion based on the length of the string, which might cause stack overflows.- See Also:
- Constant Field Values
-
-
Method Detail
-
build
@Deprecated public static Automaton build(Iterable<BytesRef> input)
Deprecated.Please seeAutomata.makeStringUnion(Iterable)
insteadBuild a minimal, deterministic automaton from a sorted list ofBytesRef
representing strings in UTF-8. These strings must be binary-sorted.
-
-