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

Method popRowGroup

pkg/parquetquery/iters.go:623–637  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

621}
622
623func (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.

Callers 3

seekRowGroupMethod · 0.95
nextMethod · 0.95
nextMethod · 0.80

Calls 1

EmptyRowNumberFunction · 0.85

Tested by

no test coverage detected