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

Method rawIter

tempodb/encoding/vparquet5/block_iterator.go:43–55  ·  view source on GitHub ↗
(ctx context.Context, pool *rowPool)

Source from the content-addressed store, hash-verified

41}
42
43func (b *backendBlock) rawIter(ctx context.Context, pool *rowPool) (*rawIterator, error) {
44 pf, r, err := b.openForIteration(ctx)
45 if err != nil {
46 return nil, err
47 }
48
49 traceIDIndex, _, _ := parquetquery.GetColumnIndexByPath(pf, TraceIDColumnName)
50 if traceIDIndex < 0 {
51 return nil, fmt.Errorf("cannot find trace ID column in '%s' in block '%s'", TraceIDColumnName, b.meta.BlockID.String())
52 }
53
54 return &rawIterator{b.meta.BlockID.String(), r, traceIDIndex, pool}, nil
55}
56
57type rawIterator struct {
58 blockID string

Callers 4

CompactMethod · 0.45
BenchmarkReadAllTracesFunction · 0.45

Calls 3

openForIterationMethod · 0.95
GetColumnIndexByPathFunction · 0.92
StringMethod · 0.45

Tested by 3

BenchmarkReadAllTracesFunction · 0.36