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

Method WriteWithKey

db/data/writer.go:65–72  ·  view source on GitHub ↗
(key, val super.Value)

Source from the content-addressed store, hash-verified

63}
64
65func (w *Writer) WriteWithKey(key, val super.Value) error {
66 w.count++
67 if err := w.writer.Write(val); err != nil {
68 return err
69 }
70 w.object.Max.CopyFrom(key)
71 return w.writeIndex(key)
72}
73
74func (w *Writer) writeIndex(key super.Value) error {
75 w.seekIndexTrigger += len(key.Bytes())

Callers 2

WriteMethod · 0.95
WriteMethod · 0.80

Calls 3

writeIndexMethod · 0.95
CopyFromMethod · 0.80
WriteMethod · 0.65

Tested by

no test coverage detected