Class SuggestibleEntryCache
- java.lang.Object
-
- org.apache.lucene.analysis.hunspell.SuggestibleEntryCache
-
class SuggestibleEntryCache extends java.lang.Object
A cache allowing for CPU-cache-friendlier iteration overWordStorage
entries that can be used for suggestions. The words and the form data are stored in plain contiguous arrays with no compression.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SuggestibleEntryCache(short[] lengths, char[] roots, int[] formData)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static SuggestibleEntryCache
buildCache(WordStorage storage)
(package private) void
processSuggestibleWords(int minLength, int maxLength, java.util.function.BiConsumer<CharsRef,java.util.function.Supplier<IntsRef>> processor)
-
-
-
Method Detail
-
buildCache
static SuggestibleEntryCache buildCache(WordStorage storage)
-
-