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

Method Get

pkg/parquetquery/pool.go:26–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func (p *ResultPool) Get() *IteratorResult {
27 if x := p.pool.Get(); x != nil {
28 return x.(*IteratorResult)
29 }
30
31 return &IteratorResult{
32 Entries: make([]struct {
33 Key string
34 Value parquet.Value
35 }, 0, p.cap),
36 OtherEntries: make([]struct {
37 Key string
38 Value any
39 }, 0, p.cap),
40 }
41}
42
43func (p *ResultPool) Release(r *IteratorResult) {
44 r.Reset()

Callers 1

TestResultPoolReleaseFunction · 0.95

Calls 1

GetMethod · 0.65

Tested by 1

TestResultPoolReleaseFunction · 0.76