(pf *parquet.File, opts common.SearchOptions)
| 481 | } |
| 482 | |
| 483 | func rowGroupsFromFile(pf *parquet.File, opts common.SearchOptions) []parquet.RowGroup { |
| 484 | rgs := pf.RowGroups() |
| 485 | if opts.TotalPages > 0 { |
| 486 | // Read UP TO TotalPages. The sharding calculations |
| 487 | // are just estimates, so it may not line up with the |
| 488 | // actual number of pages in this file. |
| 489 | if opts.StartPage+opts.TotalPages > len(rgs) { |
| 490 | opts.TotalPages = len(rgs) - opts.StartPage |
| 491 | } |
| 492 | rgs = rgs[opts.StartPage : opts.StartPage+opts.TotalPages] |
| 493 | } |
| 494 | |
| 495 | return rgs |
| 496 | } |
no outgoing calls
no test coverage detected