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

Method rowIterator

tempodb/encoding/vparquet4/wal_block.go:255–266  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

253}
254
255func (w *walBlockFlush) rowIterator(ctx context.Context) (*rowIterator, error) {
256 file, err := w.file(ctx)
257 if err != nil {
258 return nil, err
259 }
260
261 pf := file.parquetFile
262
263 idx, _, _ := parquetquery.GetColumnIndexByPath(pf, TraceIDColumnName)
264 r := parquet.NewReader(pf)
265 return newRowIterator(r, file, w.ids.EntriesSortedByID(), idx), nil
266}
267
268type pageFile struct {
269 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