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

Method getTraceID

tempodb/encoding/vparquet4/block_iterator.go:64–72  ·  view source on GitHub ↗
(r parquet.Row)

Source from the content-addressed store, hash-verified

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

Callers 1

NextMethod · 0.95

Calls 1

CloneMethod · 0.80

Tested by

no test coverage detected