(page pq.Page)
| 474 | } |
| 475 | |
| 476 | func (p *InstrumentedPredicate) KeepPage(page pq.Page) bool { |
| 477 | p.InspectedPages++ |
| 478 | |
| 479 | if p.Pred == nil || p.Pred.KeepPage(page) { |
| 480 | p.KeptPages++ |
| 481 | return true |
| 482 | } |
| 483 | |
| 484 | return false |
| 485 | } |
| 486 | |
| 487 | func (p *InstrumentedPredicate) KeepValue(v pq.Value) bool { |
| 488 | p.InspectedValues++ |