public class MethodStreamSpec extends StreamSpecBase implements StreamSpecRaw, StreamSpecCompiled, MetaDefItem, java.io.Serializable
EMPTY_STREAM_ARRAY
Constructor and Description |
---|
MethodStreamSpec(java.lang.String optionalStreamName,
ViewSpec[] viewSpecs,
java.lang.String ident,
java.lang.String className,
java.lang.String methodName,
java.util.List<ExprNode> expressions,
java.lang.String eventTypeName)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
StreamSpecCompiled |
compile(StatementContext context,
java.util.Set<java.lang.String> eventTypeReferences,
boolean isInsertInto,
java.util.Collection<java.lang.Integer> assignedTypeNumberStack,
boolean isJoin,
boolean isContextDeclaration,
boolean isOnTrigger,
java.lang.String optionalStreamName)
Compiles a raw stream specification consisting event type information and filter expressions
to an validated, optimized form for use with filter service
|
java.lang.String |
getClassName()
Returns the class name.
|
java.lang.String |
getEventTypeName() |
java.util.List<ExprNode> |
getExpressions()
Returns the parameter expressions.
|
java.lang.String |
getIdent()
Returns the prefix (method) for the method invocation syntax.
|
java.lang.String |
getMethodName()
Returns the method name.
|
getOptionalStreamName, getOptions, getViewSpecs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOptionalStreamName, getOptions, getViewSpecs
public MethodStreamSpec(java.lang.String optionalStreamName, ViewSpec[] viewSpecs, java.lang.String ident, java.lang.String className, java.lang.String methodName, java.util.List<ExprNode> expressions, java.lang.String eventTypeName)
optionalStreamName
- is the stream name or null if none definedviewSpecs
- is an list of view specificationsident
- the prefix in the clauseclassName
- the class namemethodName
- the method nameexpressions
- the parameter expressionseventTypeName
- event type name if providedpublic java.lang.String getIdent()
public java.lang.String getClassName()
public java.lang.String getMethodName()
public java.lang.String getEventTypeName()
public java.util.List<ExprNode> getExpressions()
public StreamSpecCompiled compile(StatementContext context, java.util.Set<java.lang.String> eventTypeReferences, boolean isInsertInto, java.util.Collection<java.lang.Integer> assignedTypeNumberStack, boolean isJoin, boolean isContextDeclaration, boolean isOnTrigger, java.lang.String optionalStreamName) throws ExprValidationException
StreamSpecRaw
compile
in interface StreamSpecRaw
context
- statement-level serviceseventTypeReferences
- event type names used by the statementisInsertInto
- true for insert-intoassignedTypeNumberStack
- for assigning nested type numbersisJoin
- indicates whether a join or not a joinisContextDeclaration
- indicates whether declared as part of the context declarations, if anyisOnTrigger
- indicator for on-triggeroptionalStreamName
- stream nameExprValidationException
- to indicate validation errors