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

Method Push

csup/writer.go:42–50  ·  view source on GitHub ↗
(vec vector.Any)

Source from the content-addressed store, hash-verified

40}
41
42func (w *Serializer) Push(vec vector.Any) error {
43 if vec.Len() != 0 {
44 w.dynamic.Write(vec)
45 if w.dynamic.len >= maxObjectSize {
46 return w.finalizeObject()
47 }
48 }
49 return nil
50}
51
52func (w *Serializer) finalizeObject() error {
53 root, dataSize, err := w.dynamic.Encode()

Callers 2

TestCSUPBatchBugFunction · 0.95

Calls 3

finalizeObjectMethod · 0.95
LenMethod · 0.65
WriteMethod · 0.65

Tested by 2

TestCSUPBatchBugFunction · 0.76