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

Method Put

tempodb/encoding/vparquet4/compactor.go:325–335  ·  view source on GitHub ↗
(row parquet.Row)

Source from the content-addressed store, hash-verified

323}
324
325func (r *rowPool) Put(row parquet.Row) {
326 if cap(row) != r.size {
327 // Dont' repool slices that weren't created by this pool.
328 return
329 }
330 // Clear before putting into the pool.
331 // This is important so that pool entries don't hang
332 // onto the underlying buffers.
333 clear(row)
334 r.pool.Put(row[:0]) //nolint:all //SA6002
335}
336
337// estimateProtoSizeFromParquetRow estimates the byte-length of the corresponding
338// trace in tempopb.Trace format. This method is unreasonably effective.

Callers 11

NextMethod · 0.45
putSpanFunction · 0.45
putSpansetFunction · 0.45
putEventFunction · 0.45
putLinkFunction · 0.45
CompactMethod · 0.45
BenchmarkDeconstructFunction · 0.45
IteratorMethod · 0.45
CreateBlockFunction · 0.45
EncodeMethod · 0.45
DecodeMethod · 0.45

Calls

no outgoing calls

Tested by 1

BenchmarkDeconstructFunction · 0.36