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

Method rowIterator

tempodb/encoding/vparquet3/wal_block.go:247–258  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

245}
246
247func (w *walBlockFlush) rowIterator(ctx context.Context) (*rowIterator, error) {
248 file, err := w.file(ctx)
249 if err != nil {
250 return nil, err
251 }
252
253 pf := file.parquetFile
254
255 idx, _, _ := parquetquery.GetColumnIndexByPath(pf, TraceIDColumnName)
256 r := parquet.NewReader(pf)
257 return newRowIterator(r, file, w.ids.EntriesSortedByID(), idx), nil
258}
259
260type pageFile struct {
261 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