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

Method rawIter

tempodb/encoding/vparquet3/block_iterator.go:39–51  ·  view source on GitHub ↗
(ctx context.Context, pool *rowPool)

Source from the content-addressed store, hash-verified

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

Callers 3

CompactMethod · 0.45

Calls 3

openMethod · 0.95
GetColumnIndexByPathFunction · 0.92
StringMethod · 0.45