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

Function NewMapEncoder

csup/map.go:18–24  ·  view source on GitHub ↗
(cctx *Context, typ *super.TypeMap)

Source from the content-addressed store, hash-verified

16}
17
18func NewMapEncoder(cctx *Context, typ *super.TypeMap) *MapEncoder {
19 return &MapEncoder{
20 keys: NewEncoder(cctx, typ.KeyType),
21 values: NewEncoder(cctx, typ.ValType),
22 offsets: newOffsetsEncoder(),
23 }
24}
25
26func (m *MapEncoder) Write(vec vector.Any) {
27 if vec.Len() == 0 {

Callers 1

NewEncoderFunction · 0.85

Calls 2

newOffsetsEncoderFunction · 0.85
NewEncoderFunction · 0.70

Tested by

no test coverage detected