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

Function rowGroupsFromFile

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

Source from the content-addressed store, hash-verified

481}
482
483func 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}

Callers 4

autocompleteIterFunction · 0.70
FetchMethod · 0.70
FetchSpansMethod · 0.70
SearchMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected