MCPcopy Create free account
hub / github.com/microsoft/SandDance / TupleIndex

Function TupleIndex

docs/app/js/sanddance-app.js:118661–118663  ·  view source on GitHub ↗

* An index that maps from unique, string-coerced, field values to tuples. * Assumes that the field serves as a unique key with no duplicate values. * @constructor * @param {object} params - The parameters for this operator. * @param {function(object): *} params.field - The field accessor to inde

(params)

Source from the content-addressed store, hash-verified

118659 * @param {object} params - The parameters for this operator.
118660 * @param {function(object): *} params.field - The field accessor to index.
118661 */ function TupleIndex(params) {
118662 (0, _vegaDataflow.Transform).call(this, (0, _vegaUtil.fastmap)(), params);
118663}
118664(0, _vegaUtil.inherits)(TupleIndex, (0, _vegaDataflow.Transform), {
118665 transform (_, pulse) {
118666 const df = pulse.dataflow, field = _.field, index = this.value, set2 = (t)=>index.set(field(t), t);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected