public class MethodStreamSpec extends StreamSpecBase implements StreamSpecRaw, StreamSpecCompiled, MetaDefItem, Serializable
EMPTY_STREAM_ARRAY
Constructor and Description |
---|
MethodStreamSpec(String optionalStreamName,
ViewSpec[] viewSpecs,
String ident,
String className,
String methodName,
List<ExprNode> expressions,
String eventTypeName)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
StreamSpecCompiled |
compile(StatementContext context,
Set<String> eventTypeReferences,
boolean isInsertInto,
Collection<Integer> assignedTypeNumberStack,
boolean isJoin,
boolean isContextDeclaration,
boolean isOnTrigger,
String optionalStreamName)
Compiles a raw stream specification consisting event type information and filter expressions
to an validated, optimized form for use with filter service
|
String |
getClassName()
Returns the class name.
|
String |
getEventTypeName() |
List<ExprNode> |
getExpressions()
Returns the parameter expressions.
|
String |
getIdent()
Returns the prefix (method) for the method invocation syntax.
|
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(String optionalStreamName, ViewSpec[] viewSpecs, String ident, String className, String methodName, List<ExprNode> expressions, 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 String getIdent()
public String getClassName()
public String getMethodName()
public String getEventTypeName()
public List<ExprNode> getExpressions()
public StreamSpecCompiled compile(StatementContext context, Set<String> eventTypeReferences, boolean isInsertInto, Collection<Integer> assignedTypeNumberStack, boolean isJoin, boolean isContextDeclaration, boolean isOnTrigger, 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