Class TokenInfoFST
java.lang.Object
org.apache.lucene.analysis.ja.dict.TokenInfoFST
Thin wrapper around an FST with root-arc caching for Japanese.
Depending upon fasterButMoreRam, either just kana (191 arcs), or kana and han (28,607 arcs) are cached. The latter offers additional performance at the cost of more RAM.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindTargetArc
(int ch, FST.Arc<Long> follow, FST.Arc<Long> arc, boolean useCache, FST.BytesReader fstReader) getFirstArc
(FST.Arc<Long> arc)
-
Field Details
-
fst
-
cacheCeiling
private final int cacheCeiling -
rootCache
-
NO_OUTPUT
-
-
Constructor Details
-
TokenInfoFST
- Throws:
IOException
-
-
Method Details
-
cacheRootArcs
- Throws:
IOException
-
findTargetArc
public FST.Arc<Long> findTargetArc(int ch, FST.Arc<Long> follow, FST.Arc<Long> arc, boolean useCache, FST.BytesReader fstReader) throws IOException - Throws:
IOException
-
getFirstArc
-
getBytesReader
-
getInternalFST
-