|
Oracle® Fusion Middleware Java API Reference for Event Processing in Oracle Stream Analytics 12c Release (12.2.1.3.0) E98700-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Processors filter, correlate, aggregate, and perform other event processing functions. These functions are specified in some high-level language other than Java, as determined by the returned URI.
Inner Class Summary | |
static class |
Processor.ClockType |
Method Summary | |
abstract void |
addDataProvider(DataProvider source) In addition to receiving and sending events, a processor can poll data providers to be able to merge the streaming events with static data. |
abstract void |
addDataProvider(java.lang.String typeName, DataProvider source) Deprecated. see addExternalSource |
abstract void |
addExternalSource(ExternalSource source) In addition to receiving and sending events, a processor can poll data providers to be able to merge the streaming events with static data. |
abstract Statement |
createStatement(java.lang.String query) Compile query using the supplied query string parameter. |
abstract Statement |
createStatement(java.lang.String query, java.lang.String queryId) Compile query using the supplied query string parameter and query id. |
abstract boolean |
destroyStatement(java.lang.String statementId) Deletes statement and removes it from processor. |
abstract Processor.ClockType |
getClockType() |
abstract EventTypeRepository |
getEventTypeRepository() Returns repository for types defined within the application. |
abstract StatementManager |
getStatementManager() Returns statement manager for accessing compiled statements defined for this processor. |
abstract long |
getTime() |
abstract java.util.List |
loadStatements(java.net.URL location) Load queries from an XML document located at the specified URL. |
abstract void |
setClockType(Processor.ClockType clockType) |
abstract void |
setDelegateClassLoader(java.lang.ClassLoader delegateLoader) Sets the ClassLoader to use to resolve user defined functions. |
abstract void |
setFunctionBeans(java.util.Map beans) Sets map of beans containing user-defined functions for this processor. |
abstract void |
setTime(long timeInMillis) |
Methods inherited from interface com.bea.wlevs.ede.api.EventSink |
onEvent |
Method Detail |
public java.util.List loadStatements(java.net.URL location) throws MultiStatementException
<processor <rules> <rule id="rule1"><![CDATA[ select stockSymbol, perc(price) as percentage from StockTick retain 10 events where stockSymbol='ACME' having perc(price) > 10.0 or perc(price) < -10.0 ]]></rule> <rule id="rule2"><![CDATA[ select stockSymbol, perc(price) as percentage from StockTick retain 10 events where stockSymbol=? having perc(price) > ? or perc(price) < ? ]]></rule> </rules> <bindings> <binding> <params>ORCL,5.0,-5.0</params> <params>BEAS,10.0,-10.0</params> </binding> </bindings> </processor>
location
- URL location of XML documentpublic Statement createStatement(java.lang.String query) throws StatementException
query
- query string to compilepublic Statement createStatement(java.lang.String query, java.lang.String queryId) throws StatementException
query
- query string to compilequeryId
- ID for query unique over this processorpublic boolean destroyStatement(java.lang.String statementId)
statement
- id of existing statement.Boolean
- true if removed, and false otherwise.public EventTypeRepository getEventTypeRepository()
public StatementManager getStatementManager()
public void addDataProvider(DataProvider source)
source
- - data provider.public void addDataProvider(java.lang.String typeName, DataProvider source)
addExternalSource
typeName
- - type of data being providedsource
- - data provider.public void addExternalSource(ExternalSource source)
source
- public void setFunctionBeans(java.util.Map beans)
source
- - reference to bean in the form of a map.public void setDelegateClassLoader(java.lang.ClassLoader delegateLoader)
delegateLoader
- public void setTime(long timeInMillis)
public long getTime()
public Processor.ClockType getClockType()
public void setClockType(Processor.ClockType clockType)
|
Copyright © 2007, 2018, Oracle and/or its affiliates. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |