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

Function matchSource

compiler/optimizer/parallelize.go:59–73  ·  view source on GitHub ↗
(seq dag.Seq)

Source from the content-addressed store, hash-verified

57}
58
59func matchSource(seq dag.Seq) (*dag.ListerScan, *dag.SlicerOp, dag.Seq) {
60 lister, ok := seq[0].(*dag.ListerScan)
61 if !ok {
62 return nil, nil, nil
63 }
64 seq = seq[1:]
65 slicer, ok := seq[0].(*dag.SlicerOp)
66 if ok {
67 seq = seq[1:]
68 }
69 if _, ok := seq[0].(*dag.SeqScan); !ok {
70 panic("parseSource: no SeqScan")
71 }
72 return lister, slicer, seq
73}
74
75func (o *Optimizer) parallelizeFileScan(seq dag.Seq, replicas int) (dag.Seq, error) {
76 // Prepend a pass so we can parallelize seq[0].

Callers 1

ParallelizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected