Class TokenInfoFST
- java.lang.Object
-
- org.apache.lucene.analysis.ja.dict.TokenInfoFST
-
public final class TokenInfoFST extends java.lang.Object
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.
-
-
Constructor Summary
Constructors Constructor Description TokenInfoFST(FST<java.lang.Long> fst, boolean fasterButMoreRam)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private FST.Arc<java.lang.Long>[]
cacheRootArcs()
FST.Arc<java.lang.Long>
findTargetArc(int ch, FST.Arc<java.lang.Long> follow, FST.Arc<java.lang.Long> arc, boolean useCache, FST.BytesReader fstReader)
FST.BytesReader
getBytesReader()
FST.Arc<java.lang.Long>
getFirstArc(FST.Arc<java.lang.Long> arc)
(package private) FST<java.lang.Long>
getInternalFST()
-
-
-
Constructor Detail
-
TokenInfoFST
public TokenInfoFST(FST<java.lang.Long> fst, boolean fasterButMoreRam) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
cacheRootArcs
private FST.Arc<java.lang.Long>[] cacheRootArcs() throws java.io.IOException
- Throws:
java.io.IOException
-
findTargetArc
public FST.Arc<java.lang.Long> findTargetArc(int ch, FST.Arc<java.lang.Long> follow, FST.Arc<java.lang.Long> arc, boolean useCache, FST.BytesReader fstReader) throws java.io.IOException
- Throws:
java.io.IOException
-
getBytesReader
public FST.BytesReader getBytesReader()
-
getInternalFST
FST<java.lang.Long> getInternalFST()
-
-