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

Method Metadata

csup/union.go:62–75  ·  view source on GitHub ↗
(cctx *Context, off uint64)

Source from the content-addressed store, hash-verified

60}
61
62func (u *UnionEncoder) Metadata(cctx *Context, off uint64) (uint64, ID) {
63 off, tags := u.tags.Segment(off)
64 values := make([]ID, 0, len(u.values))
65 for _, val := range u.values {
66 var id ID
67 off, id = val.Metadata(cctx, off)
68 values = append(values, id)
69 }
70 return off, cctx.enter(&Union{
71 Tags: tags,
72 Values: values,
73 Length: u.count,
74 })
75}

Callers

nothing calls this directly

Calls 3

SegmentMethod · 0.80
MetadataMethod · 0.65
enterMethod · 0.45

Tested by

no test coverage detected