Class UnknownDictionaryWriter
java.lang.Object
org.apache.lucene.analysis.morph.BinaryDictionaryWriter<UnknownDictionary>
org.apache.lucene.analysis.ko.dict.UnknownDictionaryWriter
-
Field Summary
FieldsFields inherited from class org.apache.lucene.analysis.morph.BinaryDictionaryWriter
entryWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintput the entry in mapvoidputCharacterCategory(int codePoint, String characterClassName) Put mapping from unicode code point to character class.voidputInvokeDefinition(String characterClassName, int invoke, int group, int length) voidWrite whole dictionary in a directory.Methods inherited from class org.apache.lucene.analysis.morph.BinaryDictionaryWriter
addMapping, getBaseFileName, write
-
Field Details
-
characterDefinition
-
-
Constructor Details
-
UnknownDictionaryWriter
public UnknownDictionaryWriter(int size)
-
-
Method Details
-
put
Description copied from class:BinaryDictionaryWriterput the entry in map- Overrides:
putin classBinaryDictionaryWriter<UnknownDictionary>- Returns:
- current position of buffer, which will be wordId of next entry
-
putCharacterCategory
Put mapping from unicode code point to character class.- Parameters:
codePoint- code pointcharacterClassName- character class name
-
putInvokeDefinition
-
write
Description copied from class:BinaryDictionaryWriterWrite whole dictionary in a directory.- Specified by:
writein classBinaryDictionaryWriter<UnknownDictionary>- Throws:
IOException- if an I/O error occurs writing the dictionary files
-