|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.spec.StreamSpecBase
com.espertech.esper.epl.spec.DBStatementStreamSpec
public class DBStatementStreamSpec
Specification object for historical data poll via database SQL statement.
Field Summary |
---|
Fields inherited from interface com.espertech.esper.epl.spec.StreamSpecCompiled |
---|
EMPTY_STREAM_ARRAY |
Constructor Summary | |
---|---|
DBStatementStreamSpec(java.lang.String optionalStreamName,
ViewSpec[] viewSpecs,
java.lang.String databaseName,
java.lang.String sqlWithSubsParams,
java.lang.String metadataSQL)
Ctor. |
Method Summary | |
---|---|
StreamSpecCompiled |
compile(StatementContext statementContext,
java.util.Set<java.lang.String> eventTypeReferences,
boolean isInsertInto,
java.util.Collection<java.lang.Integer> assignedTypeNumberStack,
boolean isJoin,
boolean isContextDeclaration,
boolean isOnTrigger)
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 |
getDatabaseName()
Returns the database name. |
java.lang.String |
getMetadataSQL()
Returns the optional sample metadata SQL |
java.lang.String |
getSqlWithSubsParams()
Returns the SQL with substitution parameters. |
Methods inherited from class com.espertech.esper.epl.spec.StreamSpecBase |
---|
getOptionalStreamName, getOptions, getViewSpecs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.espertech.esper.epl.spec.StreamSpec |
---|
getOptionalStreamName, getOptions, getViewSpecs |
Constructor Detail |
---|
public DBStatementStreamSpec(java.lang.String optionalStreamName, ViewSpec[] viewSpecs, java.lang.String databaseName, java.lang.String sqlWithSubsParams, java.lang.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 suppliedMethod Detail |
---|
public java.lang.String getDatabaseName()
public java.lang.String getSqlWithSubsParams()
public java.lang.String getMetadataSQL()
public StreamSpecCompiled compile(StatementContext statementContext, java.util.Set<java.lang.String> eventTypeReferences, boolean isInsertInto, java.util.Collection<java.lang.Integer> assignedTypeNumberStack, boolean isJoin, boolean isContextDeclaration, boolean isOnTrigger)
StreamSpecRaw
compile
in interface StreamSpecRaw
statementContext
- 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 any
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |