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

Function WithPool

pkg/parquetquery/iters.go:335–337  ·  view source on GitHub ↗

WithPool allows setting a custom result pool for this iterator. Custom pooling can be useful to keep similar sized results together or to isolate data. By default all iterators use a shared pool.

(p *ResultPool)

Source from the content-addressed store, hash-verified

333// can be useful to keep similar sized results together or to isolate data. By
334// default all iterators use a shared pool.
335func WithPool(p *ResultPool) PoolOption {
336 return PoolOption{p}
337}
338
339func (o PoolOption) applyToJoinIterator(j *JoinIterator) {
340 j.pool = o.pool

Callers 15

createEventIteratorFunction · 0.92
createLinkIteratorFunction · 0.92
createSpanIteratorFunction · 0.92
createResourceIteratorFunction · 0.92
createTraceIteratorFunction · 0.92
createAttributeIteratorFunction · 0.92
createEventIteratorFunction · 0.92
createLinkIteratorFunction · 0.92
createSpanIteratorFunction · 0.92
createResourceIteratorFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected