blob: 5eae4467ff49e9ccde7d2fcdc64e3ddb6484eb38 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
(
#comment
(let config (DataSource 'config))
(let world (Configure! world config 'PureDataSource 'yt))
(let res_sink (DataSink 'result))
(let list (AsList '((Uint32 '1) (String 'a)) '((Uint32 '1) (String 'b)) '((Uint32 '2) (String 'c))))
(let keyExtractor (lambda '(x) (Nth x '0)))
(let handler (lambda '(key list) (Iterator (AsList key key))))
(let world (Write! world res_sink (Key) (GroupByKey list keyExtractor handler) '('('type))))
(let world (Commit! world res_sink))
(return world)
)
|