public class EventRowRegexNFAViewFactory extends ViewFactorySupport
Constructor and Description |
---|
EventRowRegexNFAViewFactory(ViewFactoryChain viewChain,
MatchRecognizeSpec matchRecognizeSpec,
AgentInstanceContext agentInstanceContext,
boolean isUnbound,
Annotation[] annotations,
ConfigurationEngineDefaults.MatchRecognize matchRecognizeConfig)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
attach(EventType parentEventType,
StatementContext statementContext,
ViewFactory optionalParentFactory,
List<ViewFactory> parentViewFactories)
Attaches the factory to a parent event type such that the factory can validate
attach requirements and determine an event type for resulting views.
|
List<AggregationServiceAggExpressionDesc> |
getAggregationExpressions() |
AggregationServiceMatchRecognize |
getAggregationService() |
RegexNFAState[] |
getAllStates() |
EventType |
getEventType()
Returns the event type that the view that is created by the view factory would create for events posted
by the view.
|
int |
getNumEventsEventsPerStreamDefine() |
Set<ExprPreviousMatchRecognizeNode> |
getPreviousExprNodes() |
String |
getViewName()
Returns the name of the view, not namespace+name but readable name.
|
View |
makeView(AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext)
Create a new view.
|
void |
setViewParameters(ViewFactoryContext viewFactoryContext,
List<ExprNode> viewParameters)
Indicates user EPL query view parameters to the view factory.
|
assertReturnsNonConstant, canReuse, evaluate, evaluateAssertNoProperties, evaluateSizeParam, validate, validate, validateAndEvaluate, validateAndEvaluateExpr, validateExpr, validateNoParameters, validateNoProperties, validateSizeParam, validateSizeSingleParam
protected final MatchRecognizeSpec matchRecognizeSpec
protected final LinkedHashMap<String,Pair<Integer,Boolean>> variableStreams
protected final HashMap<String,Pair<ExprNode,ExprEvaluator>> variableDefinitions
protected final ObjectArrayEventType compositeEventType
protected final EventType rowEventType
protected final AggregationServiceMatchRecognize aggregationService
protected final List<AggregationServiceAggExpressionDesc> aggregationExpressions
protected final TreeMap<Integer,List<ExprPreviousMatchRecognizeNode>> callbacksPerIndex
protected final boolean isUnbound
protected final boolean isIterateOnly
protected final boolean isCollectMultimatches
protected final boolean isDefineAsksMultimatches
protected final ObjectArrayBackedEventBean defineMultimatchEventBean
protected final boolean[] isExprRequiresMultimatchState
protected final RowRegexExprNode expandedPatternNode
protected final ConfigurationEngineDefaults.MatchRecognize matchRecognizeConfig
protected final ExprEvaluator[] columnEvaluators
protected final String[] columnNames
protected final ExprEvaluator[] partitionByEvals
protected final RegexNFAState[] startStates
protected final RegexNFAState[] allStates
protected final String[] multimatchVariablesArray
protected final int[] multimatchStreamNumToVariable
protected final int[] multimatchVariableToStreamNum
protected final int numEventsEventsPerStreamDefine
protected final boolean isOrTerminated
protected final boolean isTrackMaxStates
public EventRowRegexNFAViewFactory(ViewFactoryChain viewChain, MatchRecognizeSpec matchRecognizeSpec, AgentInstanceContext agentInstanceContext, boolean isUnbound, Annotation[] annotations, ConfigurationEngineDefaults.MatchRecognize matchRecognizeConfig) throws ExprValidationException
viewChain
- viewsmatchRecognizeSpec
- specificationisUnbound
- true for unbound streamannotations
- annotationsmatchRecognizeConfig
- configagentInstanceContext
- contextExprValidationException
- if validation failspublic void setViewParameters(ViewFactoryContext viewFactoryContext, List<ExprNode> viewParameters) throws ViewParameterException
ViewFactory
viewFactoryContext
- supplied context information for the view factoryviewParameters
- is the objects representing the view parametersViewParameterException
- if the parameters don't match view parameter needspublic void attach(EventType parentEventType, StatementContext statementContext, ViewFactory optionalParentFactory, List<ViewFactory> parentViewFactories) throws ViewParameterException
ViewFactory
parentEventType
- is the parent event stream's or view factory's event typestatementContext
- contains the services needed for creating a new event typeoptionalParentFactory
- is null when there is no parent view factory, or contains the
parent view factoryparentViewFactories
- is a list of all the parent view factories or empty list if there are noneViewParameterException
- is thrown to indicate that this view factories's view would not play
with the parent view factories viewpublic View makeView(AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext)
ViewFactory
agentInstanceViewFactoryContext
- contextpublic EventType getEventType()
ViewFactory
public List<AggregationServiceAggExpressionDesc> getAggregationExpressions()
public AggregationServiceMatchRecognize getAggregationService()
public Set<ExprPreviousMatchRecognizeNode> getPreviousExprNodes()
public String getViewName()
ViewFactory
public RegexNFAState[] getAllStates()
public int getNumEventsEventsPerStreamDefine()