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

Method Metadata

csup/map.go:47–57  ·  view source on GitHub ↗
(cctx *Context, off uint64)

Source from the content-addressed store, hash-verified

45}
46
47func (m *MapEncoder) Metadata(cctx *Context, off uint64) (uint64, ID) {
48 off, lens := m.offsets.Segment(off)
49 off, keys := m.keys.Metadata(cctx, off)
50 off, vals := m.values.Metadata(cctx, off)
51 return off, cctx.enter(&Map{
52 Lengths: lens,
53 Keys: keys,
54 Values: vals,
55 Length: m.count,
56 })
57}
58
59func (m *MapEncoder) Encode(group *errgroup.Group) {
60 m.offsets.Encode(group)

Callers

nothing calls this directly

Calls 3

SegmentMethod · 0.80
MetadataMethod · 0.65
enterMethod · 0.45

Tested by

no test coverage detected