Example: SourceStream with InputWindow Migration

In CCL, the Aleri InputWindow element maps to the KEEP clause.

Therefore, this example migrates to an input window with a KEEP clause:

AleriML:

  <Store file="store1" fullsize="64" id="store1" kind="memory"/>
    <SourceStream id="alldatatypes" store="store1" >
   <InputWindow type="records" value="1000" slack="500"/>
    <Column datatype="int32" key="true" name="id"/>
    <Column datatype="int64" key="true" name="a"/>
    <Column datatype="string" key="false" name="charData"/>
  </SourceStream>

CCL:

CREATE  INPUT  WINDOW alldatatypes
SCHEMA (id INTEGER, a LONG, charData STRING)
PRIMARY KEY (id, a)
 STORE store1
KEEP 1000 ROWS  SLACK 500;