Uses of Class
com.hankcs.algorithm.State
-
Uses of State in com.hankcs.algorithm
Fields in com.hankcs.algorithm declared as StateModifier and TypeFieldDescriptionprivate State
State.failure
fail 函数,如果没有匹配到,则跳转到此状态。private State
AhoCorasickDoubleArrayTrie.Builder.rootState
the root state of trieFields in com.hankcs.algorithm with type parameters of type StateMethods in com.hankcs.algorithm that return StateModifier and TypeMethodDescriptionState.failure()
获取failure状态按照character转移,根节点转移失败会返回自己(永远不会返回null)private State
转移到下一个状态State.nextStateIgnoreRootState
(Character character) 按照character转移,任何节点转移失败会返回nullMethods in com.hankcs.algorithm that return types with arguments of type StateMethods in com.hankcs.algorithm with parameters of type StateModifier and TypeMethodDescriptionprivate void
AhoCorasickDoubleArrayTrie.Builder.constructOutput
(State targetState) construct output tableprivate int
fetch siblings of a parent nodevoid
State.setFailure
(State failState, int[] fail) 设置failure状态Method parameters in com.hankcs.algorithm with type arguments of type StateModifier and TypeMethodDescriptionprivate int
fetch siblings of a parent nodeprivate int
insert the siblings to double array trie