()
| 621 | } |
| 622 | |
| 623 | func (c *SyncIterator) popRowGroup() (pq.RowGroup, RowNumber, RowNumber) { |
| 624 | if len(c.rgs) == 0 { |
| 625 | return nil, EmptyRowNumber(), EmptyRowNumber() |
| 626 | } |
| 627 | |
| 628 | rg := c.rgs[0] |
| 629 | minRN := c.rgsMin[0] |
| 630 | maxRN := c.rgsMax[0] |
| 631 | |
| 632 | c.rgs = c.rgs[1:] |
| 633 | c.rgsMin = c.rgsMin[1:] |
| 634 | c.rgsMax = c.rgsMax[1:] |
| 635 | |
| 636 | return rg, minRN, maxRN |
| 637 | } |
| 638 | |
| 639 | // seekRowGroup skips ahead to the row group that could contain the value at the |
| 640 | // desired row number. Does nothing if the current row group is already the correct one. |
no test coverage detected