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

Method Add

runtime/vam/expr/dropper.go:100–114  ·  view source on GitHub ↗
(path field.Path)

Source from the content-addressed store, hash-verified

98type fieldsMap map[string]fieldsMap
99
100func (f fieldsMap) Add(path field.Path) {
101 if len(path) == 1 {
102 f[path[0]] = nil
103 } else if len(path) > 1 {
104 ff, ok := f[path[0]]
105 if ff == nil {
106 if ok {
107 return
108 }
109 ff = fieldsMap{}
110 f[path[0]] = ff
111 }
112 ff.Add(path[1:])
113 }
114}

Callers 6

NewDropperFunction · 0.95
boolMaskRidxFunction · 0.45
evalForListMethod · 0.45
missingOrQuietFunction · 0.45
joinMethod · 0.45
quietBitmapFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected