|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Processes queries specific to an EPL.
| Method Summary | |
Statement |
createStatement(String query)
Compile query using the supplied query string parameter. |
Statement |
createStatement(String query,
String queryId)
Compile query using the supplied query string parameter and query id. |
URI |
getEPL()
Returns unique URI associated with a particular type of Processor. |
EventTypeRepository |
getEventTypeRepository()
Returns repository for types defined within the application. |
StatementManager |
getStatementManager()
Returns statement manager for accessing compiled statements defined for this processor. |
List |
loadStatements(URL location)
Load queries from an XML document located at the specified URL. |
| Methods inherited from interface com.bea.wlrt.ede.Stage |
destroy,
getId |
| Methods inherited from interface com.bea.wlrt.ede.EventSource |
addEventSink,
getEventSinks,
removeEventSink |
| Methods inherited from interface com.bea.wlrt.ede.EventSink |
onEvent |
| Methods inherited from interface java.lang.Iterable |
iterator |
| Method Detail |
public URI getEPL()
public List loadStatements(URL location)
throws MultiStatementException
<processor xmlns="http://www.bea.com/wlrt/ede" type="wlrt:epl">
<rules>
<rule id="rule1"><![CDATA[
select stockSymbol, perc(price) as percentage
from StockTick(stockSymbol='BEAS').win:length(2)
having perc(price) > 10.0 or perc(price) < -10.0
]]></rule>
<rule id="rule2"><![CDATA[
select stockSymbol, perc(price) as percentage
from StockTick(stockSymbol='IBM').win:length(2)
having perc(price) > 10.0 or perc(price) < -10.0
]]></rule>
</rules>
</processor>
location - URL location of queries
public Statement createStatement(String query)
throws StatementException
query - query string to compile
public Statement createStatement(String query,
String queryId)
throws StatementException
query - query string to compilequeryId - ID for query unique over this procesorpublic EventTypeRepository getEventTypeRepository()
public StatementManager getStatementManager()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||