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

Function newUnionBuilder

vector/builder.go:241–247  ·  view source on GitHub ↗
(typ *super.TypeUnion)

Source from the content-addressed store, hash-verified

239}
240
241func newUnionBuilder(typ *super.TypeUnion) Builder {
242 var values []Builder
243 for _, typ := range typ.Types {
244 values = append(values, NewBuilder(typ))
245 }
246 return &unionBuilder{typ: typ, values: values}
247}
248
249func (u *unionBuilder) Write(bytes scode.Bytes) {
250 var typ super.Type

Callers 1

NewBuilderFunction · 0.85

Calls 1

NewBuilderFunction · 0.70

Tested by

no test coverage detected