MCPcopy Create free account
hub / github.com/brimdata/super / newMapBuilder

Function newMapBuilder

vector/builder.go:211–218  ·  view source on GitHub ↗
(typ *super.TypeMap)

Source from the content-addressed store, hash-verified

209}
210
211func newMapBuilder(typ *super.TypeMap) Builder {
212 return &mapBuilder{
213 typ: typ,
214 keys: NewBuilder(typ.KeyType),
215 values: NewBuilder(typ.ValType),
216 offsets: []uint32{0},
217 }
218}
219
220func (m *mapBuilder) Write(bytes scode.Bytes) {
221 off := m.offsets[len(m.offsets)-1]

Callers 1

NewBuilderFunction · 0.85

Calls 1

NewBuilderFunction · 0.70

Tested by

no test coverage detected