Flattens nested structure, converting each value into a data set, which are
then unioned.
struct is an expression that evaluates to an array or object, which is
then “exploded” into multiple values. idStatus indicates what each of
those exploded values should look like (either just the value, just the “id”
(i.e., the key or index), or a 2-element array of key and value). repair
is applied across the new set, integrating the exploded values into the
original set.
E.g., in:
LeftShift(x,
ProjectKey(SrcHole, "bar"),
ExcludeId,
ConcatMaps(LeftSide, MakeMap("bar", RightSide)))
If x consists of things that look like { foo: 7, bar: [1, 2, 3] }, then
that’s what LeftSide is. And RightSide is values like 1, 2, and
3, because that’s what you get from flattening the struct.So then our
right-biased quasar.qscript.MapFuncsCore.ConcatMaps says to concat
{ foo: 7, bar: [1, 2, 3] } with { bar: 1 }, resulting in
{ foo: 7, bar: 1 } (then again with { foo: 7, bar: 2 } and
{ foo: 7, bar: 3 }, finishing up the handling of that one element in the
original (x) dataset.
Flattens nested structure, converting each value into a data set, which are then unioned.
structis an expression that evaluates to an array or object, which is then “exploded” into multiple values.idStatusindicates what each of those exploded values should look like (either just the value, just the “id” (i.e., the key or index), or a 2-element array of key and value).repairis applied across the new set, integrating the exploded values into the original set.E.g., in: LeftShift(x, ProjectKey(SrcHole, "bar"), ExcludeId, ConcatMaps(LeftSide, MakeMap("bar", RightSide)))
{ foo: 7, bar: [1, 2, 3] }consists of things that look likeIfx, then that’s what LeftSide is. And RightSide is values like1,2, and{ bar: 1 }3, because that’s what you get from flattening the struct.So then our right-biased quasar.qscript.MapFuncsCore.ConcatMaps says to concat{ foo: 7, bar: [1, 2, 3] }with, resulting in{ foo: 7, bar: 2 }{ foo: 7, bar: 1 }(then again withandx{ foo: 7, bar: 3 }, finishing up the handling of that one element in the original () dataset.