Package org.apache.lucene.analysis.morph
Class CharacterDefinition
java.lang.Object
org.apache.lucene.analysis.morph.CharacterDefinition
Character category data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFunctional interface to lookup character class -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCharacterDefinition(IOSupplier<InputStream> charDefResource, String charDefCodecHeader, int charDefCodecVersion, int classCount) -
Method Summary
Modifier and TypeMethodDescriptionbytegetCharacterClass(char c) booleanisGroup(char c) booleanisInvoke(char c)
-
Field Details
-
FILENAME_SUFFIX
- See Also:
-
characterCategoryMap
protected final byte[] characterCategoryMap
-
-
Constructor Details
-
CharacterDefinition
protected CharacterDefinition(IOSupplier<InputStream> charDefResource, String charDefCodecHeader, int charDefCodecVersion, int classCount) throws IOException - Throws:
IOException
-
-
Method Details
-
getCharacterClass
public byte getCharacterClass(char c) -
isInvoke
public boolean isInvoke(char c) -
isGroup
public boolean isGroup(char c)
-