Package org.apache.flink.cep.nfa
Class ComputationState
- java.lang.Object
-
- org.apache.flink.cep.nfa.ComputationState
-
public class ComputationState extends Object
Helper class which encapsulates the currentStateName of the NFA computation. It points to the current currentStateName, the previous entry of the pattern, the current version and the starting timestamp of the overall pattern.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComputationState
createStartState(String state)
static ComputationState
createStartState(String state, DeweyNumber version)
static ComputationState
createState(String currentState, NodeId previousEntry, DeweyNumber version, long startTimestamp, long previousTimestamp, EventId startEventID)
boolean
equals(Object obj)
String
getCurrentStateName()
NodeId
getPreviousBufferEntry()
long
getPreviousTimestamp()
EventId
getStartEventID()
long
getStartTimestamp()
DeweyNumber
getVersion()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
getStartEventID
public EventId getStartEventID()
-
getPreviousBufferEntry
public NodeId getPreviousBufferEntry()
-
getStartTimestamp
public long getStartTimestamp()
-
getPreviousTimestamp
public long getPreviousTimestamp()
-
getCurrentStateName
public String getCurrentStateName()
-
getVersion
public DeweyNumber getVersion()
-
createStartState
public static ComputationState createStartState(String state)
-
createStartState
public static ComputationState createStartState(String state, DeweyNumber version)
-
createState
public static ComputationState createState(String currentState, NodeId previousEntry, DeweyNumber version, long startTimestamp, long previousTimestamp, EventId startEventID)
-
-