si potrebbe utilizzare la finestra #keepall per "simulare una table" e spiegare il join stream to table in epl.
Ecco un esempio completo funzionante:
EPL Statements
create schema StockTick(symbol string, price double);
create schema StockSymbol(symbol string, name string);
@Name('Out') select s.name AS name, t.price AS price
from StockTick.win:length(1) AS t, StockSymbol#keepall AS s
where t.symbol=s.symbol;
At: 2001-01-01 08:00:00.000
Statement: Out
Insert
Out-output={name='General Electric', price=20.5}
At: 2001-01-01 08:00:05.000
Statement: Out
Insert
Out-output={name='Yahoo!', price=65.0}
Esempio preso dalla guida
select * from RfidEvent#time(30 sec) as rfid
left outer join ProductName#keepall as refprod
on rfid.productId = refprod.prodId
left outer join LocationDescription#keepall as refdesc
on rfid.location = refdesc.locId
si potrebbe utilizzare la finestra #keepall per "simulare una table" e spiegare il join stream to table in epl.
Ecco un esempio completo funzionante:
EPL Statements
Time And Event Sequence
Scenario Results
Esempio preso dalla guida
[src: 5.12.3. Outer, Left and Right Joins]