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

Function bundleOutputs

compiler/package.go:91–104  ·  view source on GitHub ↗
(rctx *runtime.Context, outputs map[string]vio.Puller, chans *op.DebugChans)

Source from the content-addressed store, hash-verified

89}
90
91func bundleOutputs(rctx *runtime.Context, outputs map[string]vio.Puller, chans *op.DebugChans) vio.Puller {
92 switch len(outputs) + len(chans.Debug) {
93 case 0:
94 return nil
95 case 1:
96 var puller vio.Puller
97 for k, p := range outputs {
98 puller = op.NewCatcher(op.NewSingle(k, p))
99 }
100 return puller
101 default:
102 return op.NewMux(rctx, outputs, chans)
103 }
104}
105
106func VectorFilterCompile(rctx *runtime.Context, query string, env *exec.Environment, head *dbid.Commitish) (sbuf.Puller, error) {
107 // Eventually the semantic analyzer + rungen will resolve the pool but

Callers 3

CompileWithASTFunction · 0.85
CompileWithSortKeyFunction · 0.85
NewDeleteQueryMethod · 0.85

Calls 3

NewCatcherFunction · 0.92
NewSingleFunction · 0.92
NewMuxFunction · 0.92

Tested by

no test coverage detected