Let's say that I have a simple object:
public class StockTick{
private String symbol;
private decimal price;
private Date date;
private int unixTimestamp
}
How should I modify following query to use StockTick.date or StockTick.unixTimestamp to agregate within .win:time() window?
select avg(price) from StockTick.win:time(30 sec) where symbol='IBM'