MCPcopy Index your code
hub / github.com/microsoft/SandDance / collect

Function collect

docs/app/js/sanddance-app.js:116171–116177  ·  view source on GitHub ↗
(cells)

Source from the content-addressed store, hash-verified

116169 cross () {
116170 const aggr = this, curr = aggr.value, dims = aggr._dnames, vals = dims.map(()=>({})), n = dims.length; // collect all group-by domain values
116171 function collect(cells) {
116172 let key, i, t, v;
116173 for(key in cells){
116174 t = cells[key].tuple;
116175 for(i = 0; i < n; ++i)vals[i][v = t[dims[i]]] = v;
116176 }
116177 }
116178 collect(aggr._prev);
116179 collect(curr); // iterate over key cross-product, create cells as needed
116180 function generate(base, tuple, index) {

Callers 2

crossFunction · 0.70
analyzeFunction · 0.70

Calls 1

CollectFunction · 0.70

Tested by

no test coverage detected