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

Function newRegexPredicate

pkg/parquetquery/predicates.go:181–190  ·  view source on GitHub ↗
(regs []string, shouldMatch bool)

Source from the content-addressed store, hash-verified

179}
180
181func newRegexPredicate(regs []string, shouldMatch bool) (Predicate, error) {
182 m, err := regexp.NewRegexp(regs, shouldMatch)
183 if err != nil {
184 return nil, err
185 }
186
187 return &regexPredicate{
188 matcher: m,
189 }, nil
190}
191
192func (p *regexPredicate) String() string {
193 return fmt.Sprintf("RegexPredicate{%s}", p.matcher.String())

Callers 2

NewRegexInPredicateFunction · 0.85
NewRegexNotInPredicateFunction · 0.85

Calls 1

NewRegexpFunction · 0.92

Tested by

no test coverage detected