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

Method getTraceID

tempodb/encoding/vparquet5/block_iterator.go:66–74  ·  view source on GitHub ↗
(r parquet.Row)

Source from the content-addressed store, hash-verified

64var _ RawIterator = (*rawIterator)(nil)
65
66func (i *rawIterator) getTraceID(r parquet.Row) common.ID {
67 for _, v := range r {
68 if v.Column() == i.traceIDIndex {
69 // Important - clone to get a detached copy that lives outside the pool.
70 return v.Clone().ByteArray()
71 }
72 }
73 return nil
74}
75
76func (i *rawIterator) Next(context.Context) (common.ID, parquet.Row, error) {
77 rows := []parquet.Row{i.pool.Get()}

Callers 1

NextMethod · 0.95

Calls 1

CloneMethod · 0.80

Tested by

no test coverage detected