Skip to content

Commit

Permalink
rename operators
Browse files Browse the repository at this point in the history
  • Loading branch information
streamsadmin committed Mar 22, 2017
1 parent b6e659e commit 6c3fb2f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions QuickStart/TradesApp/application/TradesAppCloud.spl
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,29 @@ composite TradesAppCloud

}

stream<Quotes> FilteredQuotes = Filter(Quotes)
stream<Quote> FilteredQuotes = Filter(Quotes)
{
param
filter : askprice > 0.0 ;
}

stream<rstring ticker, float64 min, float64 max, float64 average> AverageAskingPrice = Aggregate(FilteredQuotes as inPort0Alias)
stream<rstring ticker, float64 min, float64 max, float64 average> AvgPrice = Aggregate(FilteredQuotes as inPort0Alias)
{
window
inPort0Alias : tumbling, count(5), partitioned ;
param
partitionBy : ticker ;
output
AverageAskingPrice : average = Average(askprice), min = Min(askprice),
AvgPrice : average = Average(askprice), min = Min(askprice),
max = Max(askprice) ;
config
placement : partitionExlocation("input") ;
}

() as PrintAveragePrice = Custom(AverageAskingPrice)
() as PrintAvPrice = Custom(AvgPrice)
{
logic
onTuple AverageAskingPrice :
onTuple AvgPrice :
{
if(average != 0.0l)
{
Expand Down

0 comments on commit 6c3fb2f

Please sign in to comment.