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

Function orIfNeeded

tempodb/encoding/vparquet5/block_traceql.go:3934–3943  ·  view source on GitHub ↗
(preds []parquetquery.Predicate)

Source from the content-addressed store, hash-verified

3932}
3933
3934func orIfNeeded(preds []parquetquery.Predicate) parquetquery.Predicate {
3935 switch len(preds) {
3936 case 0:
3937 return nil
3938 case 1:
3939 return preds[0]
3940 default:
3941 return parquetquery.NewOrPredicate(preds...)
3942 }
3943}
3944
3945// unsafeToString casts a byte slice to a string w/o allocating
3946func unsafeToString(b []byte) string {

Callers 11

createEventIteratorFunction · 0.70
createSpanIteratorFunction · 0.70
createResourceIteratorFunction · 0.70
createAttributeIteratorFunction · 0.70
createResourceIteratorsFunction · 0.70
createSpanIteratorsFunction · 0.70

Calls 1

NewOrPredicateFunction · 0.92

Tested by

no test coverage detected