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.-
Method Summary
Modifier and TypeMethodDescriptionvoidprocessSuggestibleWords(int minLength, int maxLength, Consumer<FlyweightEntry> processor) Calls the processor for every cached dictionary entry with length betweenminLengthandmaxLength, both ends inclusive.
-
Method Details
-
processSuggestibleWords
public void processSuggestibleWords(int minLength, int maxLength, Consumer<FlyweightEntry> processor) Calls the processor for every cached dictionary entry with length betweenminLengthandmaxLength, both ends inclusive. The callback entry is reused and may not be saved for later.
-