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

Function NewTypeUnion

complex.go:347–351  ·  view source on GitHub ↗
(id int, types []Type)

Source from the content-addressed store, hash-verified

345}
346
347func NewTypeUnion(id int, types []Type) *TypeUnion {
348 t := &TypeUnion{id: id, Types: types}
349 t.createLUT()
350 return t
351}
352
353func (t *TypeUnion) createLUT() {
354 t.LUT = make(map[Type]int)

Callers 1

LookupTypeUnionMethod · 0.85

Calls 1

createLUTMethod · 0.95

Tested by

no test coverage detected