Module org.apache.lucene.core
Package org.apache.lucene.search
Interface FuzzyTermsEnum.AutomatonAttribute
-
- All Superinterfaces:
Attribute
- All Known Implementing Classes:
FuzzyTermsEnum.AutomatonAttributeImpl
- Enclosing class:
- FuzzyTermsEnum
private static interface FuzzyTermsEnum.AutomatonAttribute extends Attribute
Used for sharing automata between segmentsLevenshtein automata are large and expensive to build; we don't want to build them directly on the query because this can blow up caches that use queries as keys; we also don't want to rebuild them for every segment. This attribute allows the FuzzyTermsEnum to build the automata once for its first segment and then share them for subsequent segment calls.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompiledAutomaton[]
getAutomata()
int
getTermLength()
void
init(java.util.function.Supplier<FuzzyAutomatonBuilder> builder)
-
-
-
Method Detail
-
getAutomata
CompiledAutomaton[] getAutomata()
-
getTermLength
int getTermLength()
-
init
void init(java.util.function.Supplier<FuzzyAutomatonBuilder> builder)
-
-