MCPcopy Create free account
hub / github.com/brimdata/super / NewBufferFilterForString

Function NewBufferFilterForString

runtime/sam/expr/bufferfilter.go:45–51  ·  view source on GitHub ↗
(pattern string)

Source from the content-addressed store, hash-verified

43}
44
45func NewBufferFilterForString(pattern string) *BufferFilter {
46 if len(pattern) < 2 {
47 // Very short patterns are unprofitable.
48 return nil
49 }
50 return &BufferFilter{op: opStringFinder, f: stringsearch.NewFinder(pattern)}
51}
52
53func NewBufferFilterForStringCase(pattern string) *BufferFilter {
54 if len(pattern) < 2 {

Callers 1

Calls 1

NewFinderFunction · 0.92

Tested by

no test coverage detected