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

Method Write

vector/builder.go:220–229  ·  view source on GitHub ↗
(bytes scode.Bytes)

Source from the content-addressed store, hash-verified

218}
219
220func (m *mapBuilder) Write(bytes scode.Bytes) {
221 off := m.offsets[len(m.offsets)-1]
222 it := bytes.Iter()
223 for !it.Done() {
224 m.keys.Write(it.Next())
225 m.values.Write(it.Next())
226 off++
227 }
228 m.offsets = append(m.offsets, off)
229}
230
231func (m *mapBuilder) Build(sctx *super.Context) Any {
232 return NewMap(m.typ, m.offsets, m.keys.Build(sctx), m.values.Build(sctx))

Callers

nothing calls this directly

Calls 4

IterMethod · 0.80
WriteMethod · 0.65
DoneMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected