Tabnine Logo
State.isStart
Code IndexAdd Tabnine to your IDE (free)

How to use
isStart
method
in
org.apache.flink.cep.nfa.State

Best Java code snippets using org.apache.flink.cep.nfa.State.isStart (Showing top 12 results out of 315)

origin: apache/flink

public NFAState createInitialNFAState() {
  Queue<ComputationState> startingStates = new LinkedList<>();
  for (State<T> state : states.values()) {
    if (state.isStart()) {
      startingStates.add(ComputationState.createStartState(state.getName()));
    }
  }
  return new NFAState(startingStates);
}
origin: apache/flink

private boolean isStartState(ComputationState state) {
  State<T> stateObject = getState(state);
  if (stateObject == null) {
    throw new FlinkRuntimeException("State " + state.getCurrentStateName() + " does not exist in the NFA. NFA has states "
      + states.values());
  }
  return stateObject.isStart();
}
origin: apache/flink

assertTrue(startState.isStart());
final Set<Tuple2<String, StateTransitionAction>> startTransitions = unfoldTransitions(startState);
assertEquals(Sets.newHashSet(
origin: org.apache.flink/flink-cep_2.10

public boolean isStartState() {
  return state.isStart() && event == null;
}
origin: org.apache.flink/flink-cep_2.10

  @Override
  public boolean apply(@Nullable State<T> input) {
    return input != null && input.isStart();
  }
}).getName();
origin: org.apache.flink/flink-cep_2.10

public void addState(final State<T> state) {
  states.add(state);
  if (state.isStart()) {
    computationStates.add(ComputationState.createStartState(this, state));
  }
}
origin: org.apache.flink/flink-cep_2.11

public NFAState createInitialNFAState() {
  Queue<ComputationState> startingStates = new LinkedList<>();
  for (State<T> state : states.values()) {
    if (state.isStart()) {
      startingStates.add(ComputationState.createStartState(state.getName()));
    }
  }
  return new NFAState(startingStates);
}
origin: org.apache.flink/flink-cep

public NFAState createInitialNFAState() {
  Queue<ComputationState> startingStates = new LinkedList<>();
  for (State<T> state : states.values()) {
    if (state.isStart()) {
      startingStates.add(ComputationState.createStartState(state.getName()));
    }
  }
  return new NFAState(startingStates);
}
origin: org.apache.flink/flink-cep_2.10

public static <T> ComputationState<T> createStartState(final NFA<T> nfa, final State<T> state, final DeweyNumber version) {
  Preconditions.checkArgument(state.isStart());
  return new ComputationState<>(nfa, state, null, null, 0, -1L, version, -1L);
}
origin: org.apache.flink/flink-cep_2.11

private boolean isStartState(ComputationState state) {
  State<T> stateObject = getState(state);
  if (stateObject == null) {
    throw new FlinkRuntimeException("State " + state.getCurrentStateName() + " does not exist in the NFA. NFA has states "
      + states.values());
  }
  return stateObject.isStart();
}
origin: org.apache.flink/flink-cep

private boolean isStartState(ComputationState state) {
  State<T> stateObject = getState(state);
  if (stateObject == null) {
    throw new FlinkRuntimeException("State " + state.getCurrentStateName() + " does not exist in the NFA. NFA has states "
      + states.values());
  }
  return stateObject.isStart();
}
origin: org.apache.flink/flink-cep_2.10

public static <T> ComputationState<T> createStartState(final NFA<T> nfa, final State<T> state) {
  Preconditions.checkArgument(state.isStart());
  return new ComputationState<>(nfa, state, null, null, 0, -1L, new DeweyNumber(1), -1L);
}
org.apache.flink.cep.nfaStateisStart

Popular methods of State

  • <init>
  • addIgnore
  • addTake
  • getName
  • getStateTransitions
  • isFinal
  • addProceed
  • addStateTransition
  • equals
  • getStateType
  • isStop
  • makeStart
  • isStop,
  • makeStart

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now