Tabnine Logo
NFACompiler$NFAFactoryCompiler.copyWithoutTransitiveNots
Code IndexAdd Tabnine to your IDE (free)

How to use
copyWithoutTransitiveNots
method
in
org.apache.flink.cep.nfa.compiler.NFACompiler$NFAFactoryCompiler

Best Java code snippets using org.apache.flink.cep.nfa.compiler.NFACompiler$NFAFactoryCompiler.copyWithoutTransitiveNots (Showing top 13 results out of 315)

origin: apache/flink

targetState = copyWithoutTransitiveNots(tStateTransition.getTargetState());
origin: apache/flink

final State<T> sink = copyWithoutTransitiveNots(sinkState);
singletonState.addTake(sink, takeCondition);
origin: org.apache.flink/flink-cep

targetState = copyWithoutTransitiveNots(tStateTransition.getTargetState());
origin: org.apache.flink/flink-cep_2.11

final State<T> sink = copyWithoutTransitiveNots(sinkState);
singletonState.addTake(sink, takeCondition);
origin: org.apache.flink/flink-cep_2.11

targetState = copyWithoutTransitiveNots(tStateTransition.getTargetState());
origin: org.apache.flink/flink-cep_2.10

targetState = copyWithoutTransitiveNots(tStateTransition.getTargetState());
origin: org.apache.flink/flink-cep

final State<T> sink = copyWithoutTransitiveNots(sinkState);
singletonState.addTake(sink, takeCondition);
origin: org.apache.flink/flink-cep_2.10

final State<T> sink = copyWithoutTransitiveNots(sinkState);
singletonState.addTake(sink, currentCondition);
origin: org.apache.flink/flink-cep_2.10

State<T> lastSink = copyWithoutTransitiveNots(sinkState);
for (int i = 0; i < times - 1; i++) {
  lastSink = createSingletonState(lastSink, getInnerIgnoreCondition(currentPattern), false);
origin: org.apache.flink/flink-cep_2.10

private State<T> convertPattern(final State<T> sinkState) {
  final State<T> lastSink;
  final Quantifier quantifier = currentPattern.getQuantifier();
  if (quantifier.hasProperty(Quantifier.QuantifierProperty.LOOPING)) {
    // if loop has started then all notPatterns previous to the optional states are no longer valid
    final State<T> sink = copyWithoutTransitiveNots(sinkState);
    final State<T> looping = createLooping(sink);
    if (!quantifier.hasProperty(Quantifier.QuantifierProperty.OPTIONAL)) {
      lastSink = createInitMandatoryStateOfOneOrMore(looping);
    } else {
      lastSink = createInitOptionalStateOfZeroOrMore(looping, sinkState);
    }
  } else if (quantifier.hasProperty(Quantifier.QuantifierProperty.TIMES)) {
    lastSink = createTimesState(sinkState, currentPattern.getTimes());
  } else {
    lastSink = createSingletonState(sinkState);
  }
  addStopStates(lastSink);
  return lastSink;
}
origin: org.apache.flink/flink-cep_2.11

private State<T> convertPattern(final State<T> sinkState) {
  final State<T> lastSink;
  final Quantifier quantifier = currentPattern.getQuantifier();
  if (quantifier.hasProperty(Quantifier.QuantifierProperty.LOOPING)) {
    // if loop has started then all notPatterns previous to the optional states are no longer valid
    setCurrentGroupPatternFirstOfLoop(false);
    final State<T> sink = copyWithoutTransitiveNots(sinkState);
    final State<T> looping = createLooping(sink);
    setCurrentGroupPatternFirstOfLoop(true);
    lastSink = createTimesState(looping, sinkState, currentPattern.getTimes());
  } else if (quantifier.hasProperty(Quantifier.QuantifierProperty.TIMES)) {
    lastSink = createTimesState(sinkState, sinkState, currentPattern.getTimes());
  } else {
    lastSink = createSingletonState(sinkState);
  }
  addStopStates(lastSink);
  return lastSink;
}
origin: org.apache.flink/flink-cep

private State<T> convertPattern(final State<T> sinkState) {
  final State<T> lastSink;
  final Quantifier quantifier = currentPattern.getQuantifier();
  if (quantifier.hasProperty(Quantifier.QuantifierProperty.LOOPING)) {
    // if loop has started then all notPatterns previous to the optional states are no longer valid
    setCurrentGroupPatternFirstOfLoop(false);
    final State<T> sink = copyWithoutTransitiveNots(sinkState);
    final State<T> looping = createLooping(sink);
    setCurrentGroupPatternFirstOfLoop(true);
    lastSink = createTimesState(looping, sinkState, currentPattern.getTimes());
  } else if (quantifier.hasProperty(Quantifier.QuantifierProperty.TIMES)) {
    lastSink = createTimesState(sinkState, sinkState, currentPattern.getTimes());
  } else {
    lastSink = createSingletonState(sinkState);
  }
  addStopStates(lastSink);
  return lastSink;
}
origin: apache/flink

private State<T> convertPattern(final State<T> sinkState) {
  final State<T> lastSink;
  final Quantifier quantifier = currentPattern.getQuantifier();
  if (quantifier.hasProperty(Quantifier.QuantifierProperty.LOOPING)) {
    // if loop has started then all notPatterns previous to the optional states are no longer valid
    setCurrentGroupPatternFirstOfLoop(false);
    final State<T> sink = copyWithoutTransitiveNots(sinkState);
    final State<T> looping = createLooping(sink);
    setCurrentGroupPatternFirstOfLoop(true);
    lastSink = createTimesState(looping, sinkState, currentPattern.getTimes());
  } else if (quantifier.hasProperty(Quantifier.QuantifierProperty.TIMES)) {
    lastSink = createTimesState(sinkState, sinkState, currentPattern.getTimes());
  } else {
    lastSink = createSingletonState(sinkState);
  }
  addStopStates(lastSink);
  return lastSink;
}
org.apache.flink.cep.nfa.compilerNFACompiler$NFAFactoryCompilercopyWithoutTransitiveNots

Javadoc

This method creates an alternative state that is target for TAKE transition from an optional State. Accepting an event in optional State discards all not Patterns that were present before it.

E.g for a Pattern begin("a").notFollowedBy("b").followedByAny("c").optional().followedByAny("d") a sequence like : {a c b d} is a valid match, but {a b d} is not.

NOTICE: This method creates copy only if it necessary.

Popular methods of NFACompiler$NFAFactoryCompiler

  • <init>
  • compileFactory
    Compiles the given pattern into a NFAFactory. The NFA factory can be used to create multiple NFAs.
  • getStates
  • addStopStateToLooping
  • addStopStates
  • convertPattern
  • createEndingState
    Creates the dummy Final State of the NFA graph.
  • createLooping
    Creates the given state as a looping one. Looping state is one with TAKE edge to itself and PROCEED
  • createMiddleStates
    Creates all the states between Start and Final state.
  • createSingletonState
    Creates a simple single state. For an OPTIONAL state it also consists of a similar state without the
  • createStartState
    Creates the Start State of the resulting NFA graph.
  • createState
    Creates a state with State.StateType#Normal and adds it to the collection of created states. Should
  • createStartState,
  • createState,
  • createStopState,
  • createTimesState,
  • getCurrentNotCondition,
  • getIgnoreCondition,
  • getInnerIgnoreCondition,
  • getWindowTime,
  • checkPatternNameUniqueness

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JPanel (javax.swing)
  • Github Copilot alternatives
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