-
Notifications
You must be signed in to change notification settings - Fork 4
Saving operators (SOL)
edwardcapriolo edited this page Dec 16, 2013
·
1 revision
After constructing an operator we may want to save it permanently.
Welcome TekNek SOL
teknek> create x
plan> create operator plus2 as Plus2
operator> set operatorspec as groovyclosure
operator> inline
Define script below. End script with -----
inline> { tuple, collector -> collector.emit(tuple) }
inline> -----
operator> save_operator io.teknek identity
The entry is stored in zk for later use
[zk: localhost:2181(CONNECTED) 17] get /teknek/saved/io.teknek-identity-operatorDesc
{"spec":"groovyclosure","script":"{ tuple, collector -> collector.emit(tuple)
}\n","theClass":"Plus2","parameters":null,"children":[]}