MCPcopy Create free account
hub / github.com/AdRoll/baker / Process

Method Process

filter/notnull.go:53–62  ·  view source on GitHub ↗

Process implements baker.Filter.

(l baker.Record, next func(baker.Record))

Source from the content-addressed store, hash-verified

51
52// Process implements baker.Filter.
53func (v *NotNull) Process(l baker.Record, next func(baker.Record)) {
54 for _, field := range v.fields {
55 if l.Get(field) == nil {
56 atomic.AddInt64(&v.numFilteredLines, 1)
57 return
58 }
59 }
60
61 next(l)
62}

Callers 1

TestNotNullFunction · 0.95

Calls 1

GetMethod · 0.65

Tested by 1

TestNotNullFunction · 0.76