Example: CopyStream with Stateful Store Migration

In CCL, the Aleri store element migrates to a CREATE MEMORY STORE statement and the CopyStream element migrates to an output window.

AleriML:

<Store file="store1" fullsize="64" id="store1" kind="memory"/>
<CopyStream id="copydatatypes" store="store1" istream="alldatatypes"/>

CCL:

CREATE  MEMORY  STORE store1 PROPERTIES  INDEXTYPE ='tree',  INDEXSIZEHINT =8;
CREATE  OUTPUT  WINDOW copydatatypes
SCHEMA (id INTEGER, a LONG, charData STRING)
PRIMARY KEY (id, a)
 STORE store1
 AS 
SELECT * FROM alldatatypes;