Class WordStorage.Builder

java.lang.Object
org.apache.lucene.analysis.hunspell.WordStorage.Builder
Enclosing class:
WordStorage

static class WordStorage.Builder extends Object
  • Field Details

    • hasCustomMorphData

      private final boolean hasCustomMorphData
    • hashTable

      private final int[] hashTable
    • wordData

      private byte[] wordData
    • noSuggestFlags

      private final char[] noSuggestFlags
    • chainLengths

      private final int[] chainLengths
    • currentOrds

      private final IntsRefBuilder currentOrds
    • group

      private final List<char[]> group
    • morphDataIDs

      private final List<Integer> morphDataIDs
    • currentEntry

      private String currentEntry
    • wordCount

      private final int wordCount
    • hashFactor

      private final double hashFactor
    • flagEnumerator

      private final FlagEnumerator flagEnumerator
    • dataWriter

      private final ByteArrayDataOutput dataWriter
    • commonPrefixLength

      private int commonPrefixLength
    • commonPrefixPos

      private int commonPrefixPos
    • actualWords

      private int actualWords
    • maxEntryLength

      private int maxEntryLength
  • Constructor Details

    • Builder

      Builder(int wordCount, double hashFactor, boolean hasCustomMorphData, FlagEnumerator flagEnumerator, char[] noSuggestFlags)
      Parameters:
      wordCount - an approximate number of the words in the resulting dictionary, used to pre-size the hash table. This argument can be a bit larger than the actual word count, but not smaller.
  • Method Details