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

Method rowIterator

tempodb/encoding/vparquet5/wal_block.go:261–272  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

259}
260
261func (w *walBlockFlush) rowIterator(ctx context.Context) (*rowIterator, error) {
262 file, err := w.file(ctx)
263 if err != nil {
264 return nil, err
265 }
266
267 pf := file.parquetFile
268
269 idx, _, _ := parquetquery.GetColumnIndexByPath(pf, TraceIDColumnName)
270 r := parquet.NewReader(pf)
271 return newRowIterator(r, file, w.ids.EntriesSortedByID(), idx), nil
272}
273
274type pageFile struct {
275 parquetFile *parquet.File

Callers 2

IteratorMethod · 0.45
TestRowIteratorFunction · 0.45

Calls 4

fileMethod · 0.95
GetColumnIndexByPathFunction · 0.92
EntriesSortedByIDMethod · 0.80
newRowIteratorFunction · 0.70

Tested by 1

TestRowIteratorFunction · 0.36