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

Function CopyPuller

sbuf/batch.go:160–171  ·  view source on GitHub ↗
(w sio.Writer, p Puller)

Source from the content-addressed store, hash-verified

158func (p *pullerBatch) Values() []super.Value { return p.vals }
159
160func CopyPuller(w sio.Writer, p Puller) error {
161 for {
162 b, err := p.Pull(false)
163 if b == nil || err != nil {
164 return err
165 }
166 if err := WriteBatch(w, b); err != nil {
167 return err
168 }
169 b.Unref()
170 }
171}
172
173func PullerReader(p Puller) sio.Reader {
174 return &pullerReader{p: p}

Callers 2

CompactFunction · 0.92
TestParallelOrderFunction · 0.92

Calls 3

WriteBatchFunction · 0.85
PullMethod · 0.65
UnrefMethod · 0.65

Tested by 1

TestParallelOrderFunction · 0.74