Package org.apache.drill.exec.compile
Class FsmCursor
java.lang.Object
org.apache.drill.exec.compile.FsmCursor
Maintains state while traversing a finite state machine described by
an FsmDescriptor. To begin, use
createCursor
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
reset()
Resets the state machine, setting it back to the start state.void
transition
(String token) Record a transition in the state machine.
-
Method Details
-
transition
Record a transition in the state machine.Validates the transition using
FsmDescriptor.validateTransitions(CharSequence)
.- Parameters:
token
- the name of the transition
-
reset
public void reset()Resets the state machine, setting it back to the start state.
-