Process implements baker.Filter.
(l baker.Record, next func(baker.Record))
| 51 | |
| 52 | // Process implements baker.Filter. |
| 53 | func (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 | } |