MCPcopy
hub / github.com/grafana/tempo / rowGroupsFromFile

Function rowGroupsFromFile

tempodb/encoding/vparquet4/block_search.go:497–510  ·  view source on GitHub ↗
(pf *parquet.File, opts common.SearchOptions)

Source from the content-addressed store, hash-verified

495}
496
497func rowGroupsFromFile(pf *parquet.File, opts common.SearchOptions) []parquet.RowGroup {
498 rgs := pf.RowGroups()
499 if opts.TotalPages > 0 {
500 // Read UP TO TotalPages. The sharding calculations
501 // are just estimates, so it may not line up with the
502 // actual number of pages in this file.
503 if opts.StartPage+opts.TotalPages > len(rgs) {
504 opts.TotalPages = len(rgs) - opts.StartPage
505 }
506 rgs = rgs[opts.StartPage : opts.StartPage+opts.TotalPages]
507 }
508
509 return rgs
510}

Callers 3

autocompleteIterFunction · 0.70
FetchMethod · 0.70
SearchMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected