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

Function newMetaFilter

compiler/optimizer/pruner.go:154–160  ·  view source on GitHub ↗

Create a metafilter without the projection. The projection will be added later when the demand is computed.

(pred dag.Expr)

Source from the content-addressed store, hash-verified

152// Create a metafilter without the projection. The projection will be
153// added later when the demand is computed.
154func newMetaFilter(pred dag.Expr) *dag.ScanFilter {
155 e := newMetadataPruner(pred)
156 if e == nil {
157 return nil
158 }
159 return &dag.ScanFilter{Expr: e}
160}
161
162func newMetadataPruner(pred dag.Expr) dag.Expr {
163 switch e := pred.(type) {

Callers 1

optimizeSourcePathsMethod · 0.85

Calls 1

newMetadataPrunerFunction · 0.85

Tested by

no test coverage detected