(v pq.Value)
| 485 | } |
| 486 | |
| 487 | func (p *InstrumentedPredicate) KeepValue(v pq.Value) bool { |
| 488 | p.InspectedValues++ |
| 489 | |
| 490 | if p.Pred == nil || p.Pred.KeepValue(v) { |
| 491 | p.KeptValues++ |
| 492 | return true |
| 493 | } |
| 494 | |
| 495 | return false |
| 496 | } |
| 497 | |
| 498 | // keepDictionary inspects all values using the callback and returns if any |
| 499 | // matches were found. |