* 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)
| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected