| 181 | } |
| 182 | |
| 183 | execute(multiIndex: MultiIndex, rows: any[], options: JoinOptions = {}) { |
| 184 | let ix = 0; |
| 185 | for(let scan of this.scans) { |
| 186 | this.solverInfo[ix] = 0; |
| 187 | ix++; |
| 188 | } |
| 189 | let results = []; |
| 190 | for(let aggregate of this.aggregates) { |
| 191 | aggregate.aggregate(rows); |
| 192 | } |
| 193 | for(let row of rows) { |
| 194 | options.rows = results; |
| 195 | options.solverInfo = this.solverInfo; |
| 196 | results = join(multiIndex, this.scans, this.vars, row, options); |
| 197 | } |
| 198 | this.resultCount = results.length; |
| 199 | this.results = results; |
| 200 | return results; |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | export class Block { |