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

Function New

compiler/optimizer/optimizer.go:25–35  ·  view source on GitHub ↗
(ctx context.Context, env *exec.Environment)

Source from the content-addressed store, hash-verified

23}
24
25func New(ctx context.Context, env *exec.Environment) *Optimizer {
26 var root *db.Root
27 if env != nil {
28 root = env.DB()
29 }
30 return &Optimizer{
31 ctx: ctx,
32 env: env,
33 db: root,
34 }
35}
36
37// mergeFilters transforms the DAG by merging adjacent filter operators so that,
38// e.g., "where a | where b" becomes "where a and b".

Callers 3

OptimizeFunction · 0.92
NewDeleteQueryMethod · 0.92
AnalyzeDAGFunction · 0.92

Calls 1

DBMethod · 0.80

Tested by

no test coverage detected