Class SuggestibleEntryCache
java.lang.Object
org.apache.lucene.analysis.hunspell.SuggestibleEntryCache
A cache allowing for CPU-cache-friendlier iteration over
WordStorage
entries that can be
used for suggestions. The words and the form data are stored in plain contiguous arrays with no
compression.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SuggestibleEntryCache
(short[] lengths, char[] roots, int[] formData) -
Method Summary
Modifier and TypeMethodDescription(package private) static SuggestibleEntryCache
buildCache
(WordStorage storage) (package private) void
processSuggestibleWords
(int minLength, int maxLength, BiConsumer<CharsRef, Supplier<IntsRef>> processor)
-
Field Details
-
lengths
private final short[] lengths -
roots
private final char[] roots -
formData
private final int[] formData
-
-
Constructor Details
-
SuggestibleEntryCache
private SuggestibleEntryCache(short[] lengths, char[] roots, int[] formData)
-
-
Method Details
-
buildCache
-
processSuggestibleWords
void processSuggestibleWords(int minLength, int maxLength, BiConsumer<CharsRef, Supplier<IntsRef>> processor)
-