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

Method Metadata

csup/array.go:82–90  ·  view source on GitHub ↗
(cctx *Context, off uint64)

Source from the content-addressed store, hash-verified

80}
81
82func (s *SetEncoder) Metadata(cctx *Context, off uint64) (uint64, ID) {
83 off, id := s.ArrayEncoder.Metadata(cctx, off)
84 array := cctx.Lookup(id).(*Array) // XXX this leaves a dummy node in the table
85 return off, cctx.enter(&Set{
86 Length: array.Length,
87 Lengths: array.Lengths,
88 Values: array.Values,
89 })
90}

Callers

nothing calls this directly

Calls 3

MetadataMethod · 0.65
LookupMethod · 0.65
enterMethod · 0.45

Tested by

no test coverage detected