MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / MemBatch

Struct MemBatch

pkg/col/coldata/batch.go:335–349  ·  view source on GitHub ↗

MemBatch is an in-memory implementation of Batch.

Source from the content-addressed store, hash-verified

333
334// MemBatch is an in-memory implementation of Batch.
335type 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.
352func (m *MemBatch) Length() int {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected