STORES

Create default, memory, and log stores.

The example creates a memory store named MemStore, a default store named DefaultStore, and a log store named LogStore. Each store retains their default parameter values.

CREATE MEMORY STORE MemStore 
   PROPERTIES INDEXSIZEHINT = 8 , INDEXTYPE = 'TREE' ;
 
CREATE DEFAULT MEMORY STORE DefaultStore 
   PROPERTIES INDEXSIZEHINT = 8 , INDEXTYPE = 'TREE' ;
 
CREATE LOG STORE LogStore 
   PROPERTIES FILENAME = 'mylog.log' , MAXFILESIZE = 8 , 
      SYNC = FALSE , SWEEPAMOUNT = 20 , 
      RESERVEPCT = 20 , CKCOUNT= 10000 ;

The example creates an input window named TradesWindowMem that references MemStore and an output window named DefaultStoreWindow that uses SELECT all (*) syntax to retrieve all data columns from TradesWindowMem.

The example creates an output window named LogStoreWindow that references LogStore. LogStoreWindow uses SELECT and FROM clauses to pull timestamp, price, symbol, and volume data from TradesWindowMem.

The example attaches a File CSV Input adapter named InConn to TradesWindowMem.