ReplaceCol implements the Batch interface.
(col *Vec, colIdx int)
| 398 | |
| 399 | // ReplaceCol implements the Batch interface. |
| 400 | func (m *MemBatch) ReplaceCol(col *Vec, colIdx int) { |
| 401 | if m.b[colIdx] != nil && m.b[colIdx].t != nil && !m.b[colIdx].Type().Identical(col.Type()) { |
| 402 | panic(fmt.Sprintf("unexpected replacement: original vector is %s "+ |
| 403 | "whereas the replacement is %s", m.b[colIdx].Type(), col.Type())) |
| 404 | } |
| 405 | m.b[colIdx] = col |
| 406 | } |
| 407 | |
| 408 | // Reset implements the Batch interface. |
| 409 | func (m *MemBatch) Reset(typs []*types.T, length int, factory ColumnFactory) { |