Class FsmCursor

java.lang.Object
org.apache.drill.exec.compile.FsmCursor

public class FsmCursor extends Object
Maintains state while traversing a finite state machine described by an FsmDescriptor. To begin, use createCursor.
  • Method Details

    • transition

      public void transition(String token)
      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.