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

Method Write

csup/union.go:31–41  ·  view source on GitHub ↗
(vec vector.Any)

Source from the content-addressed store, hash-verified

29}
30
31func (u *UnionEncoder) Write(vec vector.Any) {
32 if vec.Len() == 0 {
33 return
34 }
35 union := vec.(*vector.Union)
36 u.count += vec.Len()
37 u.tags.Append(union.Tags)
38 for tag := range u.values {
39 u.values[tag].Write(union.Values[tag])
40 }
41}
42
43func (u *UnionEncoder) Emit(w io.Writer) error {
44 if err := u.tags.Emit(w); err != nil {

Callers

nothing calls this directly

Calls 3

LenMethod · 0.65
WriteMethod · 0.65
AppendMethod · 0.45

Tested by

no test coverage detected