(cctx *Context, typ *super.TypeMap)
| 16 | } |
| 17 | |
| 18 | func 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 | |
| 26 | func (m *MapEncoder) Write(vec vector.Any) { |
| 27 | if vec.Len() == 0 { |
no test coverage detected