Filtering and transformation in practice PDF Print E-mail
Filters and transformations are expressed in various ways in languages. 

This example in Esper implements the BidRequest creation

insert into BidRequest(requestId, store, location, pickupTime, deliveryTime,
storeManual)
select d.requestId, d.store, d.location, d.pickupTime, d.deliveryTime, s.manual
from
DeliveryRequest d unidirectional,
GPSLocationW g
//,sql:DomainDB['select ranking from Driver where driver = ${g.driver} and ranking
> ${d.minimumRanking}']
,method:Domain.driverRankLookup(g.driver) r
,method:Domain.isStoreManualLookup(d.store) s
where Geo.distanceKM(g.location, d.location) < 10
and r.ranking >= d.minimumRanking;


In this example the derived event is created using the SQL command insert into.
The enrichment done using two  methods; the first one performs lookup for drivers that satisfy the ranking requirements and the second one performs  lookup for stores to find whether it prefers manual or automatic assignment. In addition there is  location check for the drivers. As seen this is a combination of SQL with call to Java methods. For more details see the Esper FFD example.

Another example is in Apama, which shows transformation example using imperative language:

apama_transf.jpg

 

This is a transformation that enriches the Delivery Request with the current location of a driver. For more details see the Apama FFD example .


The next example is a filtering example in Streambase Event Flow UI:

streambase_transf.jpg

This example is a filter which filter- in drivers that satisfy the store's minimal ranking. This is done as "Range Specification" for the attribute ranking.
 

 
< Prev   Next >

Latest News

Deadline Extensions Announced

The Event Processing Technical Society in conjunction with the OMG Event Processing Community of Practice is sponsoring two competitions:An Innovative Event Processing Principles Contest. The contest ...
Read More ...

ACM DEBS 2011 Call for Tutorials

               Extended Deadline March 14, 2011 (23.59 GMT) The ACM DEBS (Distributed Event Based System) is the flagship conference of the event-based systems...
Read More ...

EPTS Presents Innovative Application Contest

  Event Processing Technical Society (EPTS) Presents Innovative Event Processing Application Contest   The Event Processing Technical Society in collaboration with the OMG Event Processing...
Read More ...

EPTS Presents Innovative Principles Contest

  Event Processing Technical Society (EPTS) Presents 2010 Innovative Event Processing Principles Contest   The Event Processing Technical Society is sponsoring an Innovative Event Processi...
Read More ...

New Paper: Integrating Complex Events for Collaborating and Dynamically Changing Business Processes

Integrating Complex Events for Collaborating and Dynamically Changing Business Processes Abstract: Business processes must become agile, respond to changes in the business environment in a timely ma...
Read More ...

Upcoming EPTS Related Events

Links

Link to us

RocketTheme Joomla Templates