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

Function Aggregate

docs/app/js/sanddance-app.js:116083–116099  ·  view source on GitHub ↗

* Group-by aggregation operator. * @constructor * @param {object} params - The parameters for this operator. * @param {Array } [params.groupby] - An array of accessors to groupby. * @param {Array } [params.fields] - An array of accessors to aggregate. * @

(params)

Source from the content-addressed store, hash-verified

116081 * If true, the drop parameter is ignored and empty cells are retained.
116082 * @param {boolean} [params.drop=true] - A flag indicating if empty cells should be removed.
116083 */ function Aggregate(params) {
116084 (0, _vegaDataflow.Transform).call(this, null, params);
116085 this._adds = []; // array of added output tuples
116086 this._mods = []; // array of modified output tuples
116087 this._alen = 0; // number of active added tuples
116088 this._mlen = 0; // number of active modified tuples
116089 this._drop = true; // should empty aggregation cells be removed
116090 this._cross = false; // produce full cross-product of group-by values
116091 this._dims = []; // group-by dimension accessors
116092 this._dnames = []; // group-by dimension names
116093 this._measures = []; // collection of aggregation monoids
116094 this._countOnly = false; // flag indicating only count aggregation
116095 this._counts = null; // collection of count fields
116096 this._prev = null; // previous aggregation cells
116097 this._inputs = null; // array of dependent input tuple field names
116098 this._outputs = null; // array of output tuple field names
116099}
116100Aggregate.Definition = {
116101 "type": "Aggregate",
116102 "metadata": {

Callers 2

ordinalMultipleDomainFunction · 0.70
countsRefFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected