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

Method WriteBatch

api/queryio/writer.go:56–65  ·  view source on GitHub ↗
(channel string, batch sbuf.Batch)

Source from the content-addressed store, hash-verified

54}
55
56func (w *Writer) WriteBatch(channel string, batch sbuf.Batch) error {
57 if w.channel != channel {
58 w.channel = channel
59 if err := w.WriteControl(api.QueryChannelSet{Channel: channel}); err != nil {
60 return err
61 }
62 }
63 defer batch.Unref()
64 return w.writer.Push(sbuf.Dematerialize(w.sctx, batch))
65}
66
67func (w *Writer) WhiteChannelEnd(channel string) error {
68 return w.WriteControl(api.QueryChannelEnd{Channel: channel})

Callers 1

handleQueryFunction · 0.95

Calls 4

WriteControlMethod · 0.95
DematerializeFunction · 0.92
UnrefMethod · 0.65
PushMethod · 0.65

Tested by

no test coverage detected