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

Method makeResultIntern

pkg/parquetquery/iters.go:940–944  ·  view source on GitHub ↗

Several variations of optimized makeResult functions: makeResultIntern - The intern option was enabled and the column type contains byte arrays that can benefit from interning.

(t RowNumber, v *pq.Value)

Source from the content-addressed store, hash-verified

938// makeResultIntern - The intern option was enabled and the column type contains
939// byte arrays that can benefit from interning.
940func (c *SyncIterator) makeResultIntern(t RowNumber, v *pq.Value) *IteratorResult {
941 c.at.RowNumber = t
942 c.at.Entries[0].Value = c.interner.UnsafeClone(v)
943 return &c.at
944}
945
946// makeResultClone - The column type contains pointers that must be cloned
947// to detach the values from the parquet buffers. But the intern option was

Callers

nothing calls this directly

Calls 1

UnsafeCloneMethod · 0.80

Tested by

no test coverage detected