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

Function NewSetEncoder

csup/array.go:72–80  ·  view source on GitHub ↗
(cctx *Context, typ *super.TypeSet)

Source from the content-addressed store, hash-verified

70}
71
72func NewSetEncoder(cctx *Context, typ *super.TypeSet) *SetEncoder {
73 return &SetEncoder{
74 ArrayEncoder{
75 typ: typ.Type,
76 values: NewEncoder(cctx, typ.Type),
77 offsets: newOffsetsEncoder(),
78 },
79 }
80}
81
82func (s *SetEncoder) Metadata(cctx *Context, off uint64) (uint64, ID) {
83 off, id := s.ArrayEncoder.Metadata(cctx, off)

Callers 1

NewEncoderFunction · 0.85

Calls 2

newOffsetsEncoderFunction · 0.85
NewEncoderFunction · 0.70

Tested by

no test coverage detected