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

Method Write

csup/map.go:26–35  ·  view source on GitHub ↗
(vec vector.Any)

Source from the content-addressed store, hash-verified

24}
25
26func (m *MapEncoder) Write(vec vector.Any) {
27 if vec.Len() == 0 {
28 return
29 }
30 mapVec := vec.(*vector.Map)
31 m.count += vec.Len()
32 m.keys.Write(mapVec.Keys)
33 m.values.Write(mapVec.Values)
34 m.offsets.write(mapVec.Offsets)
35}
36
37func (m *MapEncoder) Emit(w io.Writer) error {
38 if err := m.offsets.Emit(w); err != nil {

Callers

nothing calls this directly

Calls 3

LenMethod · 0.65
WriteMethod · 0.65
writeMethod · 0.45

Tested by

no test coverage detected