Tabnine Logo
ComputationState.getState
Code IndexAdd Tabnine to your IDE (free)

How to use
getState
method
in
org.apache.flink.cep.nfa.ComputationState

Best Java code snippets using org.apache.flink.cep.nfa.ComputationState.getState (Showing top 6 results out of 315)

origin: org.apache.flink/flink-cep_2.10

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

for (int i = 0; i < numberComputationStates; i++) {
  ComputationState<T> computationState = readComputationState(ois);
  if (computationState.getState().getName().equals(BEGINNING_STATE_NAME)) {
    afterMigration = true;
origin: org.apache.flink/flink-cep_2.10

private OutgoingEdges<T> createDecisionGraph(ComputationState<T> computationState, T event) {
  final OutgoingEdges<T> outgoingEdges = new OutgoingEdges<>(computationState.getState());
  states.push(computationState.getState());
origin: org.apache.flink/flink-cep_2.10

    return input != null && input.getState().getName().equals(BEGINNING_STATE_NAME);
}).getState();
  final String previousName = readState.getState().getName();
  final String currentName = Iterators.find(
    readState.getState().getStateTransitions().iterator(),
    new Predicate<StateTransition<T>>() {
      @Override
origin: org.apache.flink/flink-cep_2.10

@Override
public void serialize(NFA<T> record, DataOutputView target) throws IOException {
  serializeStates(record.states, target);
  target.writeLong(record.windowTime);
  target.writeBoolean(record.handleTimeout);
  sharedBufferSerializer.serialize(record.eventSharedBuffer, target);
  target.writeInt(record.computationStates.size());
  StringSerializer stateNameSerializer = StringSerializer.INSTANCE;
  LongSerializer timestampSerializer = LongSerializer.INSTANCE;
  DeweyNumber.DeweyNumberSerializer versionSerializer = new DeweyNumber.DeweyNumberSerializer();
  for (ComputationState<T> computationState: record.computationStates) {
    stateNameSerializer.serialize(computationState.getState().getName(), target);
    stateNameSerializer.serialize(computationState.getPreviousState() == null
        ? null : computationState.getPreviousState().getName(), target);
    timestampSerializer.serialize(computationState.getTimestamp(), target);
    versionSerializer.serialize(computationState.getVersion(), target);
    timestampSerializer.serialize(computationState.getStartTimestamp(), target);
    target.writeInt(computationState.getCounter());
    if (computationState.getEvent() == null) {
      target.writeBoolean(false);
    } else {
      target.writeBoolean(true);
      eventSerializer.serialize(computationState.getEvent(), target);
    }
  }
}
origin: org.apache.flink/flink-cep_2.10

    if (!computationState.isStartState()) {
      final DeweyNumber version;
      if (isEquivalentState(edge.getTargetState(), computationState.getState())) {
ComputationState<T> startState = ComputationState.createStartState(this, computationState.getState(), startVersion);
resultingComputationStates.add(startState);
org.apache.flink.cep.nfaComputationStategetState

Popular methods of ComputationState

  • <init>
  • createStartState
  • createState
  • getCurrentStateName
  • getStartTimestamp
  • getVersion
  • equals
  • getPreviousBufferEntry
  • getStartEventID
  • getConditionContext
  • getCounter
  • getEvent
  • getCounter,
  • getEvent,
  • getPreviousState,
  • getTimestamp,
  • isFinalState,
  • isStartState,
  • isStopState

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top plugins for WebStorm
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