Takes a function of two parameters.
Takes a function of two parameters. The first is the current key (which
defaults to this._id
, but may have been overridden by previous
[Flat]$Maps) and the second is the document itself. The function must
return an array of 2-element arrays, each containing a new key and a new
value.
Performs a sequence of operations, sequentially, merging their results.
Takes a function of two parameters.
Takes a function of two parameters. The first is the current key (which
defaults to this._id
, but may have been overridden by previous
[Flat]$Maps) and the second is the document itself. The function must
return a 2-element array containing the new key and new value.
TODO: If an $Out has anything after it, we need to either do
TODO: If an $Out has anything after it, we need to either do
$seq($out(src, dst), after($read(dst), ...))
or
$Fork(src, List($out(_, dst), after(_, ...)))
The latter seems preferable, but currently the forking semantics are not clear.
Takes a function of two parameters – a key and an array of values.
Takes a function of two parameters – a key and an array of values. The function must return a single value.
A type for a Workflow
which has had crystallize
applied to it.
This should be renamed once the other PipelineOp goes away, but it is the subset of operations that can ever be pipelined.
Operations with a single source op.
Operations without an input.
Flattens the sequence of operations like so:
Flattens the sequence of operations like so:
chain( $read(Path.fileAbs("foo")), $match(Selector.Where(Js.Bool(true))), $limit(7))
val read = $read(Path.fileAbs("foo")) val match = $match(Selector.Where(Js.Bool(true))(read) $limit(7)(match)
Performs some irreversible conversions, meant to be used once, after the entire workflow has been generated.