|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.Stream
com.espertech.esper.client.soda.SQLStream
public class SQLStream
An SQL stream that polls via SQL for events via join.
Constructor Summary | |
---|---|
SQLStream(String databaseName,
String sqlWithSubsParams,
String optStreamName,
String optionalMetadataSQL)
Ctor. |
Method Summary | |
---|---|
static SQLStream |
create(String databaseName,
String sqlWithSubsParams)
Creates a new SQL-based stream. |
static SQLStream |
create(String databaseName,
String sqlWithSubsParams,
String optStreamName)
Creates a new SQL-based stream. |
static SQLStream |
create(String databaseName,
String sqlWithSubsParams,
String optStreamName,
String optionalMetadataSQL)
Creates a new SQL-based stream. |
String |
getDatabaseName()
Returns the database name. |
String |
getOptionalMetadataSQL()
Returns the metadata SQL if any. |
String |
getSqlWithSubsParams()
Returns the SQL with optional substitution parameters in the SQL. |
void |
setDatabaseName(String databaseName)
Sets the database name. |
void |
setOptionalMetadataSQL(String optionalMetadataSQL)
Sets metadata SQL. |
void |
setSqlWithSubsParams(String sqlWithSubsParams)
Sets the SQL with optional substitution parameters in the SQL. |
void |
toEPLStream(StringWriter writer)
Renders the stream in textual representation. |
Methods inherited from class com.espertech.esper.client.soda.Stream |
---|
getStreamName, setStreamName, toEPL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLStream(String databaseName, String sqlWithSubsParams, String optStreamName, String optionalMetadataSQL)
databaseName
- is the database name to pollsqlWithSubsParams
- is the SQL to useoptStreamName
- is the optional as-name of the stream, or null if unnamedoptionalMetadataSQL
- optional SQL delivering metadata of statementMethod Detail |
---|
public static SQLStream create(String databaseName, String sqlWithSubsParams)
databaseName
- is the database name to pollsqlWithSubsParams
- is the SQL to use
public static SQLStream create(String databaseName, String sqlWithSubsParams, String optStreamName)
databaseName
- is the database name to pollsqlWithSubsParams
- is the SQL to useoptStreamName
- is the as-name of the stream
public static SQLStream create(String databaseName, String sqlWithSubsParams, String optStreamName, String optionalMetadataSQL)
databaseName
- is the database name to pollsqlWithSubsParams
- is the SQL to useoptStreamName
- is the as-name of the streamoptionalMetadataSQL
- optional SQL delivering metadata of statement
public String getDatabaseName()
public void setDatabaseName(String databaseName)
databaseName
- database namepublic String getSqlWithSubsParams()
public void setSqlWithSubsParams(String sqlWithSubsParams)
sqlWithSubsParams
- SQL set setpublic String getOptionalMetadataSQL()
public void setOptionalMetadataSQL(String optionalMetadataSQL)
optionalMetadataSQL
- is the SQL to fire to obtain metadata from, or null if disabledpublic void toEPLStream(StringWriter writer)
Stream
toEPLStream
in class Stream
writer
- to output to
|
© 2007 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 |