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

Function SyncIteratorOptIntern

pkg/parquetquery/iters.go:392–396  ·  view source on GitHub ↗

SyncIteratorOptIntern enables interning of string values. This is useful when the same string value is repeated many times. Not recommended with (very) high cardinality columns, such as UUIDs (spanID and traceID).

()

Source from the content-addressed store, hash-verified

390// This is useful when the same string value is repeated many times.
391// Not recommended with (very) high cardinality columns, such as UUIDs (spanID and traceID).
392func SyncIteratorOptIntern() SyncIteratorOpt {
393 return func(i *SyncIterator) {
394 i.interner = intern.New()
395 }
396}
397
398// SyncIteratorOptPredicate uses the given predicate to filter column values.
399func SyncIteratorOptPredicate(p Predicate) SyncIteratorOpt {

Callers

nothing calls this directly

Calls 1

NewFunction · 0.92

Tested by

no test coverage detected