public class NFACompiler extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
NFACompiler.NFAFactory<T>
Factory interface for
NFA . |
Modifier and Type | Field and Description |
---|---|
protected static String |
ENDING_STATE_NAME |
Constructor and Description |
---|
NFACompiler() |
Modifier and Type | Method and Description |
---|---|
static <T> NFA<T> |
compile(Pattern<T,?> pattern,
TypeSerializer<T> inputTypeSerializer,
boolean timeoutHandling)
Compiles the given pattern into a
NFA . |
static <T> NFACompiler.NFAFactory<T> |
compileFactory(Pattern<T,?> pattern,
TypeSerializer<T> inputTypeSerializer,
boolean timeoutHandling)
Compiles the given pattern into a
NFACompiler.NFAFactory . |
static <T> Map<String,State<T>> |
migrateGraph(State<T> oldStartState)
Used for migrating CEP graphs prior to 1.3.
|
protected static final String ENDING_STATE_NAME
public static <T> NFA<T> compile(Pattern<T,?> pattern, TypeSerializer<T> inputTypeSerializer, boolean timeoutHandling)
NFA
.T
- Type of the input eventspattern
- Definition of sequence patterninputTypeSerializer
- Serializer for the input typetimeoutHandling
- True if the NFA shall return timed out event patternspublic static <T> NFACompiler.NFAFactory<T> compileFactory(Pattern<T,?> pattern, TypeSerializer<T> inputTypeSerializer, boolean timeoutHandling)
NFACompiler.NFAFactory
. The NFA factory can be used to create
multiple NFAs.T
- Type of the input eventspattern
- Definition of sequence patterninputTypeSerializer
- Serializer for the input typetimeoutHandling
- True if the NFA shall return timed out event patterns@Internal public static <T> Map<String,State<T>> migrateGraph(State<T> oldStartState)
T
- type of eventsoldStartState
- dummy start state of old graphCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.