(row parquet.Row)
| 301 | } |
| 302 | |
| 303 | func (r *rowPool) Put(row parquet.Row) { |
| 304 | // Clear before putting into the pool. |
| 305 | // This is important so that pool entries don't hang |
| 306 | // onto the underlying buffers. |
| 307 | for i := range row { |
| 308 | row[i] = parquet.Value{} |
| 309 | } |
| 310 | r.pool.Put(row[:0]) //nolint:all //SA6002 |
| 311 | } |
| 312 | |
| 313 | // estimateProtoSizeFromParquetRow estimates the byte-length of the corresponding |
| 314 | // trace in tempopb.Trace format. This method is unreasonably effective. |
no outgoing calls