MemBatch is an in-memory implementation of Batch.
| 333 | |
| 334 | // MemBatch is an in-memory implementation of Batch. |
| 335 | type MemBatch struct { |
| 336 | // length is the length of batch or sel in tuples. |
| 337 | length int |
| 338 | // capacity is the maximum number of tuples that can be stored in this |
| 339 | // MemBatch. |
| 340 | capacity int |
| 341 | // b is the slice of columns in this batch. |
| 342 | b []*Vec |
| 343 | useSel bool |
| 344 | // sel is - if useSel is true - a selection vector from upstream. A |
| 345 | // selection vector is a list of selected tuple indices in this memBatch's |
| 346 | // columns (tuples for which indices are not in sel are considered to be |
| 347 | // "not present"). |
| 348 | sel []int |
| 349 | } |
| 350 | |
| 351 | // Length implements the Batch interface. |
| 352 | func (m *MemBatch) Length() int { |
nothing calls this directly
no outgoing calls
no test coverage detected