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

Method Write

vector/builder.go:29–39  ·  view source on GitHub ↗
(val super.Value)

Source from the content-addressed store, hash-verified

27}
28
29func (d *DynamicBuilder) Write(val super.Value) {
30 typ := val.Type()
31 tag, ok := d.which[typ]
32 if !ok {
33 tag = len(d.values)
34 d.values = append(d.values, NewBuilder(typ))
35 d.which[typ] = tag
36 }
37 d.tags = append(d.tags, uint32(tag))
38 d.values[tag].Write(val.Bytes())
39}
40
41func (d *DynamicBuilder) Build(sctx *super.Context) Any {
42 var vecs []Any

Callers 15

DematerializeFunction · 0.95
ValToVecFunction · 0.95
ValToPullerFunction · 0.95
ConcurrentPullMethod · 0.95
EvalMethod · 0.95
buildMethod · 0.95
CallMethod · 0.95
CallMethod · 0.95
CallMethod · 0.95
slowMethod · 0.95
CallMethod · 0.95
CallMethod · 0.95

Calls 4

NewBuilderFunction · 0.70
TypeMethod · 0.65
WriteMethod · 0.65
BytesMethod · 0.45

Tested by 2

valToVecFunction · 0.76