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

Function NewUnionFromDynamic

vector/union.go:19–25  ·  view source on GitHub ↗
(sctx *super.Context, d *Dynamic)

Source from the content-addressed store, hash-verified

17}
18
19func NewUnionFromDynamic(sctx *super.Context, d *Dynamic) *Union {
20 types := make([]super.Type, 0, len(d.Values))
21 for _, vec := range d.Values {
22 types = append(types, vec.Type())
23 }
24 return &Union{d, sctx.LookupTypeUnion(types)}
25}
26
27func (*Union) Kind() Kind {
28 return KindUnion

Callers 1

newArrayMethod · 0.92

Calls 2

LookupTypeUnionMethod · 0.80
TypeMethod · 0.65

Tested by

no test coverage detected