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

Method Build

vector/builder.go:281–291  ·  view source on GitHub ↗
(sctx *super.Context)

Source from the content-addressed store, hash-verified

279}
280
281func (f *fusionBuilder) Build(sctx *super.Context) Any {
282 types := make([]super.Type, 0, len(f.subtypes))
283 for _, tv := range f.subtypes {
284 t, err := sctx.LookupByValue(tv)
285 if err != nil {
286 panic(err)
287 }
288 types = append(types, t)
289 }
290 return NewFusion(sctx, f.typ, f.values.Build(sctx), types)
291}
292
293type enumBuilder struct {
294 typ *super.TypeEnum

Callers

nothing calls this directly

Calls 3

NewFusionFunction · 0.85
LookupByValueMethod · 0.80
BuildMethod · 0.65

Tested by

no test coverage detected