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

Function NewAddsObject

db/commits/object.go:42–48  ·  view source on GitHub ↗
(parent ksuid.KSUID, retries int, author, message string, meta super.Value, objects []data.Object)

Source from the content-addressed store, hash-verified

40}
41
42func NewAddsObject(parent ksuid.KSUID, retries int, author, message string, meta super.Value, objects []data.Object) *Object {
43 o := NewObject(parent, author, message, meta, retries)
44 for _, dataObject := range objects {
45 o.append(&Add{Commit: o.Commit, Object: dataObject})
46 }
47 return o
48}
49
50func NewDeletesObject(parent ksuid.KSUID, retries int, author, message string, ids []ksuid.KSUID) *Object {
51 o := NewObject(parent, author, message, super.Null, retries)

Callers 1

LoadMethod · 0.92

Calls 2

appendMethod · 0.95
NewObjectFunction · 0.70

Tested by

no test coverage detected