public class EventRowRegexNFAViewFactory extends ViewFactorySupport
Constructor and Description |
---|
EventRowRegexNFAViewFactory(ViewFactoryChain viewChain,
MatchRecognizeSpec matchRecognizeSpec,
AgentInstanceContext agentInstanceContext,
boolean isUnbound,
java.lang.annotation.Annotation[] annotations,
ConfigurationEngineDefaults.MatchRecognize matchRecognizeConfig)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
attach(EventType parentEventType,
StatementContext statementContext,
ViewFactory optionalParentFactory,
java.util.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.
|
java.util.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() |
java.util.Set<ExprPreviousMatchRecognizeNode> |
getPreviousExprNodes() |
java.lang.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,
java.util.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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
makeViewGroupDelegate
protected final MatchRecognizeSpec matchRecognizeSpec
protected final java.util.LinkedHashMap<java.lang.String,Pair<java.lang.Integer,java.lang.Boolean>> variableStreams
protected final java.util.HashMap<java.lang.String,Pair<ExprNode,ExprEvaluator>> variableDefinitions
protected final java.util.Map<java.lang.Integer,java.lang.String> streamVariables
protected final java.util.Set<java.lang.String> variablesSingle
protected final ObjectArrayEventType compositeEventType
protected final EventType rowEventType
protected final AggregationServiceMatchRecognize aggregationService
protected final java.util.List<AggregationServiceAggExpressionDesc> aggregationExpressions
protected final java.util.TreeMap<java.lang.Integer,java.util.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 java.lang.String[] columnNames
protected final ExprEvaluator[] partitionByEvals
protected final RegexNFAState[] startStates
protected final RegexNFAState[] allStates
protected final java.lang.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, java.lang.annotation.Annotation[] annotations, ConfigurationEngineDefaults.MatchRecognize matchRecognizeConfig) throws ExprValidationException
viewChain
- viewsmatchRecognizeSpec
- specificationisUnbound
- true for unbound streamannotations
- annotationsmatchRecognizeConfig
- configagentInstanceContext
- contextExprValidationException
- if validation failspublic void setViewParameters(ViewFactoryContext viewFactoryContext, java.util.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, java.util.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 java.util.List<AggregationServiceAggExpressionDesc> getAggregationExpressions()
public AggregationServiceMatchRecognize getAggregationService()
public java.util.Set<ExprPreviousMatchRecognizeNode> getPreviousExprNodes()
public java.lang.String getViewName()
ViewFactory
public RegexNFAState[] getAllStates()
public int getNumEventsEventsPerStreamDefine()