public class DBStatementStreamSpec extends StreamSpecBase implements StreamSpecRaw, StreamSpecCompiled, MetaDefItem, Serializable
EMPTY_STREAM_ARRAY
Constructor and Description |
---|
DBStatementStreamSpec(String optionalStreamName,
ViewSpec[] viewSpecs,
String databaseName,
String sqlWithSubsParams,
String metadataSQL)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
StreamSpecCompiled |
compile(StatementContext statementContext,
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 |
getDatabaseName()
Returns the database name.
|
String |
getMetadataSQL()
Returns the optional sample metadata SQL
|
String |
getSqlWithSubsParams()
Returns the SQL with substitution parameters.
|
getOptionalStreamName, getOptions, getViewSpecs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOptionalStreamName, getOptions, getViewSpecs
public DBStatementStreamSpec(String optionalStreamName, ViewSpec[] viewSpecs, String databaseName, String sqlWithSubsParams, String metadataSQL)
optionalStreamName
- is a stream name optionally given to streamviewSpecs
- is a list of views onto the streamdatabaseName
- is the database name to pollsqlWithSubsParams
- is the SQL with placeholder parametersmetadataSQL
- is the sample SQL to retrieve statement metadata, if any was suppliedpublic String getDatabaseName()
public String getSqlWithSubsParams()
public String getMetadataSQL()
public StreamSpecCompiled compile(StatementContext statementContext, Set<String> eventTypeReferences, boolean isInsertInto, Collection<Integer> assignedTypeNumberStack, boolean isJoin, boolean isContextDeclaration, boolean isOnTrigger, String optionalStreamName)
StreamSpecRaw
compile
in interface StreamSpecRaw
statementContext
- 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 name