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

Method Write

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

Source from the content-addressed store, hash-verified

126}
127
128func (r *recordBuilder) Write(bytes scode.Bytes) {
129 off := r.len
130 r.len++
131 it := scode.NewRecordIter(bytes, r.typ.Opts)
132 for k := range r.fields {
133 elem, none := it.Next(r.typ.Fields[k].Opt)
134 // The none condition is captured by RLE.
135 if !none {
136 r.fields[k].write(elem, off)
137 }
138 }
139}
140
141func (r *recordBuilder) Build(sctx *super.Context) Any {
142 var fields []Any

Callers

nothing calls this directly

Calls 3

NextMethod · 0.95
NewRecordIterFunction · 0.92
writeMethod · 0.45

Tested by

no test coverage detected