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

Method appendVec

csup/dynamic.go:56–64  ·  view source on GitHub ↗
(vec vector.Any)

Source from the content-addressed store, hash-verified

54}
55
56func (d *DynamicEncoder) appendVec(vec vector.Any) {
57 tag := d.lookupType(vec.Type())
58 for range vec.Len() {
59 //XXX there's a better way, but let's get this working
60 d.tags = append(d.tags, tag)
61 }
62 d.values[tag].Write(vec)
63 d.len += vec.Len()
64}
65
66func (d *DynamicEncoder) lookupType(typ super.Type) uint32 {
67 tag, ok := d.which[typ]

Callers 1

WriteMethod · 0.95

Calls 4

lookupTypeMethod · 0.95
TypeMethod · 0.65
LenMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected