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

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

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

origin: apache/flink

/**
 * Prunes matches/partial matches based on the chosen strategy.
 *
 * @param matchesToPrune current partial matches
 * @param matchedResult  already completed matches
 * @param sharedBufferAccessor   accessor to corresponding shared buffer
 * @throws Exception thrown if could not access the state
 */
public void prune(
    Collection<ComputationState> matchesToPrune,
    Collection<Map<String, List<EventId>>> matchedResult,
    SharedBufferAccessor<?> sharedBufferAccessor) throws Exception {
  EventId pruningId = getPruningId(matchedResult);
  if (pruningId != null) {
    List<ComputationState> discardStates = new ArrayList<>();
    for (ComputationState computationState : matchesToPrune) {
      if (computationState.getStartEventID() != null &&
        shouldPrune(computationState.getStartEventID(), pruningId)) {
        sharedBufferAccessor.releaseNode(computationState.getPreviousBufferEntry());
        discardStates.add(computationState);
      }
    }
    matchesToPrune.removeAll(discardStates);
  }
}
origin: apache/flink

nfaState.getPartialMatches().removeIf(pm -> pm.getStartEventID() != null && !partialMatches.contains(pm));
origin: apache/flink

private void serializeSingleComputationState(
    ComputationState computationState,
    DataOutputView target) throws IOException {
  StringValue.writeString(computationState.getCurrentStateName(), target);
  nodeIdSerializer.serialize(computationState.getPreviousBufferEntry(), target);
  versionSerializer.serialize(computationState.getVersion(), target);
  target.writeLong(computationState.getStartTimestamp());
  serializeStartEvent(computationState.getStartEventID(), target);
}
origin: apache/flink

    version,
    computationState.getStartTimestamp(),
    computationState.getStartEventID()
  );
} else {
  startTimestamp = computationState.getStartTimestamp();
  startEventId = computationState.getStartEventID();
origin: org.apache.flink/flink-cep_2.11

/**
 * Prunes matches/partial matches based on the chosen strategy.
 *
 * @param matchesToPrune current partial matches
 * @param matchedResult  already completed matches
 * @param sharedBufferAccessor   accessor to corresponding shared buffer
 * @throws Exception thrown if could not access the state
 */
public void prune(
    Collection<ComputationState> matchesToPrune,
    Collection<Map<String, List<EventId>>> matchedResult,
    SharedBufferAccessor<?> sharedBufferAccessor) throws Exception {
  EventId pruningId = getPruningId(matchedResult);
  if (pruningId != null) {
    List<ComputationState> discardStates = new ArrayList<>();
    for (ComputationState computationState : matchesToPrune) {
      if (computationState.getStartEventID() != null &&
        shouldPrune(computationState.getStartEventID(), pruningId)) {
        sharedBufferAccessor.releaseNode(computationState.getPreviousBufferEntry());
        discardStates.add(computationState);
      }
    }
    matchesToPrune.removeAll(discardStates);
  }
}
origin: org.apache.flink/flink-cep

/**
 * Prunes matches/partial matches based on the chosen strategy.
 *
 * @param matchesToPrune current partial matches
 * @param matchedResult  already completed matches
 * @param sharedBufferAccessor   accessor to corresponding shared buffer
 * @throws Exception thrown if could not access the state
 */
public void prune(
    Collection<ComputationState> matchesToPrune,
    Collection<Map<String, List<EventId>>> matchedResult,
    SharedBufferAccessor<?> sharedBufferAccessor) throws Exception {
  EventId pruningId = getPruningId(matchedResult);
  if (pruningId != null) {
    List<ComputationState> discardStates = new ArrayList<>();
    for (ComputationState computationState : matchesToPrune) {
      if (computationState.getStartEventID() != null &&
        shouldPrune(computationState.getStartEventID(), pruningId)) {
        sharedBufferAccessor.releaseNode(computationState.getPreviousBufferEntry());
        discardStates.add(computationState);
      }
    }
    matchesToPrune.removeAll(discardStates);
  }
}
origin: org.apache.flink/flink-cep

private void serializeComputationStates(Queue<ComputationState> states, DataOutputView target) throws IOException {
  target.writeInt(states.size());
  for (ComputationState computationState : states) {
    STATE_NAME_SERIALIZER.serialize(computationState.getCurrentStateName(), target);
    NODE_ID_SERIALIZER.serialize(computationState.getPreviousBufferEntry(), target);
    VERSION_SERIALIZER.serialize(computationState.getVersion(), target);
    TIMESTAMP_SERIALIZER.serialize(computationState.getStartTimestamp(), target);
    if (computationState.getStartEventID() != null) {
      target.writeByte(1);
      EVENT_ID_SERIALIZER.serialize(computationState.getStartEventID(), target);
    } else {
      target.writeByte(0);
    }
  }
}
origin: org.apache.flink/flink-cep_2.11

private void serializeComputationStates(Queue<ComputationState> states, DataOutputView target) throws IOException {
  target.writeInt(states.size());
  for (ComputationState computationState : states) {
    STATE_NAME_SERIALIZER.serialize(computationState.getCurrentStateName(), target);
    NODE_ID_SERIALIZER.serialize(computationState.getPreviousBufferEntry(), target);
    VERSION_SERIALIZER.serialize(computationState.getVersion(), target);
    TIMESTAMP_SERIALIZER.serialize(computationState.getStartTimestamp(), target);
    if (computationState.getStartEventID() != null) {
      target.writeByte(1);
      EVENT_ID_SERIALIZER.serialize(computationState.getStartEventID(), target);
    } else {
      target.writeByte(0);
    }
  }
}
origin: org.apache.flink/flink-cep_2.11

nfaState.getPartialMatches().removeIf(pm -> pm.getStartEventID() != null && !partialMatches.contains(pm));
origin: org.apache.flink/flink-cep

nfaState.getPartialMatches().removeIf(pm -> pm.getStartEventID() != null && !partialMatches.contains(pm));
origin: org.apache.flink/flink-cep

    version,
    computationState.getStartTimestamp(),
    computationState.getStartEventID()
  );
} else {
  startTimestamp = computationState.getStartTimestamp();
  startEventId = computationState.getStartEventID();
origin: org.apache.flink/flink-cep_2.11

    version,
    computationState.getStartTimestamp(),
    computationState.getStartEventID()
  );
} else {
  startTimestamp = computationState.getStartTimestamp();
  startEventId = computationState.getStartEventID();
org.apache.flink.cep.nfaComputationStategetStartEventID

Popular methods of ComputationState

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top plugins for Android Studio
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