Hi,
I'm trying to evaluate IEP for handling some processing. I'm having
trouble finding useful information or documentation.
For an example, I want to take a stream of price ticks and create a
stream of price bars. Conceptually, using a time based aggregator operator:
CREATE INPUT STREAM tick (symbol VARCHAR, price DOUBLE, shares INTEGER)
CREATE OUTPUT STREAM bar (symbol VARCHAR, bar_time TIMESTAMP, open
DOUBLE, high DOUBLE, low DOUBLE, close DOUBLE, volume INTEGER)
INSERT INTO bar SELECT symbol, aggregate_timestamp(), first(price),
max(price), min(price) last(price), sum(volume) FROM tick AGGREGATE 1min
ADVANCE 1min GROUP BY symbol
The most detailed information on the aggregators I have found is the
document in the Java CAPS documentation. [1] But it's not very detailed.
Are the available aggregate functions documented anywhere? Is it
possible to add new aggregate functions? How do I assign the time the
bar events are issued from the aggregator into one of the fields of the
event?
TIA
Malcolm
[1]
<
http://docs.sun.com/app/docs/doc/820-3378/dsgn_iep-ops-aggr_t?l=en&a=view>
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]