com.espertech.esper.rowregex
Class EventRowRegexNFAViewFactory

java.lang.Object
  extended by com.espertech.esper.view.ViewFactorySupport
      extended by com.espertech.esper.rowregex.EventRowRegexNFAViewFactory
All Implemented Interfaces:
ViewFactory

public class EventRowRegexNFAViewFactory
extends ViewFactorySupport

View factory for match-recognize view.


Field Summary
protected  java.util.List<AggregationServiceAggExpressionDesc> aggregationExpressions
           
protected  AggregationServiceMatchRecognize aggregationService
           
protected  java.util.TreeMap<java.lang.Integer,java.util.List<ExprPreviousMatchRecognizeNode>> callbacksPerIndex
           
protected  ObjectArrayEventType compositeEventType
           
protected  ObjectArrayBackedEventBean defineMultimatchEventBean
           
protected  RowRegexExprNode expandedPatternNode
           
protected  boolean isCollectMultimatches
           
protected  boolean isDefineAsksMultimatches
           
protected  boolean[] isExprRequiresMultimatchState
           
protected  boolean isIterateOnly
           
protected  boolean isUnbound
           
protected  ConfigurationEngineDefaults.MatchRecognize matchRecognizeConfig
           
protected  MatchRecognizeSpec matchRecognizeSpec
           
protected  EventType rowEventType
           
protected  java.util.Map<java.lang.Integer,java.lang.String> streamVariables
           
protected  java.util.Set<java.lang.String> variablesSingle
           
protected  java.util.LinkedHashMap<java.lang.String,Pair<java.lang.Integer,java.lang.Boolean>> variableStreams
           
 
Constructor Summary
EventRowRegexNFAViewFactory(ViewFactoryChain viewChain, MatchRecognizeSpec matchRecognizeSpec, AgentInstanceContext agentInstanceContext, boolean isUnbound, java.lang.annotation.Annotation[] annotations, ConfigurationEngineDefaults.MatchRecognize matchRecognizeConfig)
          Ctor.
 
Method Summary
 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()
           
 EventType getEventType()
          Returns the event type that the view that is created by the view factory would create for events posted by the view.
 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.
 
Methods inherited from class com.espertech.esper.view.ViewFactorySupport
assertReturnsNonConstant, canReuse, evaluateAssertNoProperties, getViewParamMessageNumericOrTimePeriod, validate, validateAndEvaluate, validateAndEvaluate, validateAndEvaluateExpr, validateExpr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matchRecognizeSpec

protected final MatchRecognizeSpec matchRecognizeSpec

variableStreams

protected final java.util.LinkedHashMap<java.lang.String,Pair<java.lang.Integer,java.lang.Boolean>> variableStreams

streamVariables

protected final java.util.Map<java.lang.Integer,java.lang.String> streamVariables

variablesSingle

protected final java.util.Set<java.lang.String> variablesSingle

compositeEventType

protected final ObjectArrayEventType compositeEventType

rowEventType

protected final EventType rowEventType

aggregationService

protected final AggregationServiceMatchRecognize aggregationService

aggregationExpressions

protected final java.util.List<AggregationServiceAggExpressionDesc> aggregationExpressions

callbacksPerIndex

protected final java.util.TreeMap<java.lang.Integer,java.util.List<ExprPreviousMatchRecognizeNode>> callbacksPerIndex

isUnbound

protected final boolean isUnbound

isIterateOnly

protected final boolean isIterateOnly

isCollectMultimatches

protected final boolean isCollectMultimatches

isDefineAsksMultimatches

protected final boolean isDefineAsksMultimatches

defineMultimatchEventBean

protected final ObjectArrayBackedEventBean defineMultimatchEventBean

isExprRequiresMultimatchState

protected final boolean[] isExprRequiresMultimatchState

expandedPatternNode

protected final RowRegexExprNode expandedPatternNode

matchRecognizeConfig

protected final ConfigurationEngineDefaults.MatchRecognize matchRecognizeConfig
Constructor Detail

EventRowRegexNFAViewFactory

public EventRowRegexNFAViewFactory(ViewFactoryChain viewChain,
                                   MatchRecognizeSpec matchRecognizeSpec,
                                   AgentInstanceContext agentInstanceContext,
                                   boolean isUnbound,
                                   java.lang.annotation.Annotation[] annotations,
                                   ConfigurationEngineDefaults.MatchRecognize matchRecognizeConfig)
                            throws ExprValidationException
Ctor.

Parameters:
viewChain - views
matchRecognizeSpec - specification
isUnbound - true for unbound stream
annotations - annotations
Throws:
ExprValidationException - if validation fails
Method Detail

setViewParameters

public void setViewParameters(ViewFactoryContext viewFactoryContext,
                              java.util.List<ExprNode> viewParameters)
                       throws ViewParameterException
Description copied from interface: ViewFactory
Indicates user EPL query view parameters to the view factory.

Parameters:
viewFactoryContext - supplied context information for the view factory
viewParameters - is the objects representing the view parameters
Throws:
ViewParameterException - if the parameters don't match view parameter needs

attach

public void attach(EventType parentEventType,
                   StatementContext statementContext,
                   ViewFactory optionalParentFactory,
                   java.util.List<ViewFactory> parentViewFactories)
            throws ViewParameterException
Description copied from interface: ViewFactory
Attaches the factory to a parent event type such that the factory can validate attach requirements and determine an event type for resulting views.

Parameters:
parentEventType - is the parent event stream's or view factory's event type
statementContext - contains the services needed for creating a new event type
optionalParentFactory - is null when there is no parent view factory, or contains the parent view factory
parentViewFactories - is a list of all the parent view factories or empty list if there are none
Throws:
ViewParameterException - is thrown to indicate that this view factories's view would not play with the parent view factories view

makeView

public View makeView(AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext)
Description copied from interface: ViewFactory
Create a new view.


getEventType

public EventType getEventType()
Description copied from interface: ViewFactory
Returns the event type that the view that is created by the view factory would create for events posted by the view.

Returns:
event type of view's created by the view factory

getAggregationExpressions

public java.util.List<AggregationServiceAggExpressionDesc> getAggregationExpressions()

getAggregationService

public AggregationServiceMatchRecognize getAggregationService()

getPreviousExprNodes

public java.util.Set<ExprPreviousMatchRecognizeNode> getPreviousExprNodes()

getViewName

public java.lang.String getViewName()
Description copied from interface: ViewFactory
Returns the name of the view, not namespace+name but readable name.

Returns:
readable name

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com