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

Function WriteBatch

sbuf/batch.go:36–44  ·  view source on GitHub ↗

WriteBatch writes the values in batch to zw. If an error occurs, WriteBatch stops and returns the error.

(zw sio.Writer, batch Batch)

Source from the content-addressed store, hash-verified

34// WriteBatch writes the values in batch to zw. If an error occurs, WriteBatch
35// stops and returns the error.
36func WriteBatch(zw sio.Writer, batch Batch) error {
37 vals := batch.Values()
38 for i := range vals {
39 if err := zw.Write(vals[i]); err != nil {
40 return err
41 }
42 }
43 return nil
44}
45
46// A Puller produces Batches of records, signaling end-of-stream (EOS) by returning
47// a nil Batch and nil error. The done argument to Pull indicates that the stream

Callers 2

pullInputMethod · 0.92
CopyPullerFunction · 0.85

Calls 2

ValuesMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected