Expand description
Coordinate-key projection and union: the key arithmetic of every dimensional join.
A coordinate key is a (category, item) list sorted by category with no
category twice (sorted), as every engine CoordKey is.
Functions§
- project
krestricted to the categories inkeep: exactly the pairs whose category is kept, in their order (a filter), so a sorted key projects to a sorted key.- union_
keys - The union of two sorted keys, by merge: sorted (so no category twice);
every pair of
a; every pair ofbwhose categoryalacks (all ofbwhen the two agree on their shared categories, as join partners do); and nothing else. On a shared categorya’s item wins.