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

Function NewUnion

vector/union.go:15–17  ·  view source on GitHub ↗
(typ *super.TypeUnion, tags []uint32, vals []Any)

Source from the content-addressed store, hash-verified

13var _ Any = (*Union)(nil)
14
15func NewUnion(typ *super.TypeUnion, tags []uint32, vals []Any) *Union {
16 return &Union{NewDynamic(tags, vals), typ}
17}
18
19func NewUnionFromDynamic(sctx *super.Context, d *Dynamic) *Union {
20 types := make([]super.Type, 0, len(d.Values))

Callers 8

projectMethod · 0.92
evalMethod · 0.92
buildListFunction · 0.92
dequietMethod · 0.92
ToFunction · 0.92
buildNullableUnionMethod · 0.92
PickFunction · 0.70
BuildMethod · 0.70

Calls 1

NewDynamicFunction · 0.85

Tested by

no test coverage detected