public class FilterStreamSpecRaw extends StreamSpecBase implements StreamSpecRaw, MetaDefItem, Serializable
Constructor and Description |
---|
FilterStreamSpecRaw()
Default ctor.
|
FilterStreamSpecRaw(FilterSpecRaw rawFilterSpec,
ViewSpec[] viewSpecs,
String optionalStreamName,
StreamSpecOptions streamSpecOptions)
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
|
FilterSpecRaw |
getRawFilterSpec()
Returns the unvalided filter spec.
|
static EventType |
resolveType(String engineURI,
String eventName,
EventAdapterService eventAdapterService,
URI[] optionalResolutionURIs)
Resolves a given event name to an event type.
|
getOptionalStreamName, getOptions, getViewSpecs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOptionalStreamName, getOptions, getViewSpecs
public FilterStreamSpecRaw(FilterSpecRaw rawFilterSpec, ViewSpec[] viewSpecs, String optionalStreamName, StreamSpecOptions streamSpecOptions)
rawFilterSpec
- is unvalidated filter specificationviewSpecs
- is the view definitionoptionalStreamName
- is the stream name if supplied, or null if not suppliedstreamSpecOptions
- - additional options, such as unidirectional stream in a joinpublic FilterStreamSpecRaw()
public FilterSpecRaw getRawFilterSpec()
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 errorspublic static EventType resolveType(String engineURI, String eventName, EventAdapterService eventAdapterService, URI[] optionalResolutionURIs) throws ExprValidationException
eventName
- is the name to resolveeventAdapterService
- for resolving event typesengineURI
- the provider URIoptionalResolutionURIs
- is URIs for resolving the event name against plug-inn event representations, if anyExprValidationException
- if the info cannot be resolved