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

Method BooleanArray

pkg/traceql/ast.go:1066–1078  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1064}
1065
1066func (s Static) BooleanArray() ([]bool, bool) {
1067 if s.Type != TypeBooleanArray {
1068 return nil, false
1069 }
1070
1071 if s.valBytes == nil {
1072 return nil, true
1073 }
1074 if len(s.valBytes) == 0 {
1075 return []bool{}, true
1076 }
1077 return unsafe.Slice((*bool)(unsafe.Pointer(&s.valBytes[0])), len(s.valBytes)), true
1078}
1079
1080func (s Static) isNumeric() bool {
1081 return s.Type.isNumeric()

Callers 8

AsAnyValueMethod · 0.95
ElementsMethod · 0.95
appendMethod · 0.95
EncodeToStringMethod · 0.95
createBoolPredicateFunction · 0.80
createBoolPredicateFunction · 0.80
createBoolPredicateFunction · 0.80
TestStatic_BooleanArrayFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestStatic_BooleanArrayFunction · 0.64