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

Function orIfNeeded

tempodb/encoding/vparquet4/block_traceql.go:3824–3833  ·  view source on GitHub ↗
(preds []parquetquery.Predicate)

Source from the content-addressed store, hash-verified

3822}
3823
3824func orIfNeeded(preds []parquetquery.Predicate) parquetquery.Predicate {
3825 switch len(preds) {
3826 case 0:
3827 return nil
3828 case 1:
3829 return preds[0]
3830 default:
3831 return parquetquery.NewOrPredicate(preds...)
3832 }
3833}
3834
3835// unsafeToString casts a byte slice to a string w/o allocating
3836func unsafeToString(b []byte) string {

Callers 6

createSpanIteratorFunction · 0.70
createResourceIteratorFunction · 0.70
createAttributeIteratorFunction · 0.70

Calls 1

NewOrPredicateFunction · 0.92

Tested by

no test coverage detected