|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.spec.StreamSpecBase
net.esper.eql.spec.DBStatementStreamSpec
public class DBStatementStreamSpec
Specification object for historical data poll via database SQL statement.
Constructor Summary | |
---|---|
DBStatementStreamSpec(String optionalStreamName,
List<ViewSpec> viewSpecs,
String databaseName,
String sqlWithSubsParams,
String metadataSQL)
Ctor. |
Method Summary | |
---|---|
StreamSpecCompiled |
compile(EventAdapterService eventAdapterService,
MethodResolutionService methodResolutionService,
PatternObjectResolutionService patternObjectResolutionService,
TimeProvider timeProvider)
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. |
Methods inherited from class net.esper.eql.spec.StreamSpecBase |
---|
getOptionalStreamName, getViewSpecs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.esper.eql.spec.StreamSpec |
---|
getOptionalStreamName, getViewSpecs |
Methods inherited from interface net.esper.eql.spec.StreamSpec |
---|
getOptionalStreamName, getViewSpecs |
Constructor Detail |
---|
public DBStatementStreamSpec(String optionalStreamName, List<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 suppliedMethod Detail |
---|
public String getDatabaseName()
public String getSqlWithSubsParams()
public String getMetadataSQL()
public StreamSpecCompiled compile(EventAdapterService eventAdapterService, MethodResolutionService methodResolutionService, PatternObjectResolutionService patternObjectResolutionService, TimeProvider timeProvider)
StreamSpecRaw
compile
in interface StreamSpecRaw
eventAdapterService
- supplies type informationmethodResolutionService
- for resolving importspatternObjectResolutionService
- for resolving pattern objectstimeProvider
- - provides engine current time
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |