MCPcopy Create free account
hub / github.com/datasweet/datatable / Compute

Method Compute

join.go:191–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189}
190
191func (j *joinImpl) Compute() (*DataTable, error) {
192 if err := j.checkInput(); err != nil {
193 return nil, err
194 }
195
196 j.initColMapper()
197
198 out := j.tables[0]
199 for i := 1; i < len(j.tables); i++ {
200 jdt, err := j.join(out, j.tables[i])
201 if err != nil {
202 return nil, err
203 }
204 out = jdt
205 }
206
207 if out == nil {
208 return nil, ErrNoOutput
209 }
210
211 return out, nil
212}
213
214func (j *joinImpl) checkInput() error {
215 if len(j.tables) < 2 {

Callers 8

InnerJoinMethod · 0.80
InnerJoinFunction · 0.80
LeftJoinMethod · 0.80
LeftJoinFunction · 0.80
RightJoinMethod · 0.80
RightJoinFunction · 0.80
OuterJoinMethod · 0.80
OuterJoinFunction · 0.80

Calls 3

checkInputMethod · 0.95
initColMapperMethod · 0.95
joinMethod · 0.95

Tested by

no test coverage detected