public class StreamSpecCompiler
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StreamSpecCompiler.FilterForFilterFactoryNodes |
Constructor and Description |
---|
StreamSpecCompiler() |
Modifier and Type | Method and Description |
---|---|
static StreamSpecCompiled |
compile(FilterStreamSpecRaw streamSpec,
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) |
static StreamSpecCompiled |
compile(MethodStreamSpec methodStreamSpec) |
static PatternStreamSpecCompiled |
compile(PatternStreamSpecRaw streamSpecRaw,
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) |
static PatternStreamSpecCompiled |
compile(PatternStreamSpecRaw streamSpecRaw,
StatementContext context,
java.util.Set<java.lang.String> eventTypeReferences,
boolean isInsertInto,
java.util.Collection<java.lang.Integer> assignedTypeNumberStack,
MatchEventSpec priorTags,
java.util.Set<java.lang.String> priorAllTags,
boolean isJoin,
boolean isContextDeclaration,
boolean isOnTrigger) |
static StreamSpecCompiled |
compile(StreamSpecRaw spec,
StatementContext statementContext,
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
|
static EventType |
resolveType(java.lang.String engineURI,
java.lang.String eventName,
EventAdapterService eventAdapterService,
java.net.URI[] optionalResolutionURIs)
Resolves a given event name to an event type.
|
public static StreamSpecCompiled compile(StreamSpecRaw spec, StatementContext statementContext, 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
spec
- specstatementContext
- statement-level serviceseventTypeReferences
- event type names used by the statementisInsertInto
- true for insert-intoisJoin
- indicates whether a join or not a joinisContextDeclaration
- indicates whether declared as part of the context declarations, if anyisOnTrigger
- indicator for on-triggeroptionalStreamName
- stream nameassignedTypeNumberStack
- for assigning nested type numbersExprValidationException
- to indicate validation errorspublic static StreamSpecCompiled compile(FilterStreamSpecRaw streamSpec, 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
ExprValidationException
public static EventType resolveType(java.lang.String engineURI, java.lang.String eventName, EventAdapterService eventAdapterService, java.net.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 resolvedpublic static PatternStreamSpecCompiled compile(PatternStreamSpecRaw streamSpecRaw, 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
ExprValidationException
public static PatternStreamSpecCompiled compile(PatternStreamSpecRaw streamSpecRaw, StatementContext context, java.util.Set<java.lang.String> eventTypeReferences, boolean isInsertInto, java.util.Collection<java.lang.Integer> assignedTypeNumberStack, MatchEventSpec priorTags, java.util.Set<java.lang.String> priorAllTags, boolean isJoin, boolean isContextDeclaration, boolean isOnTrigger) throws ExprValidationException
ExprValidationException
public static StreamSpecCompiled compile(MethodStreamSpec methodStreamSpec) throws ExprValidationException
ExprValidationException