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

Function NewObject

db/commits/object.go:24–40  ·  view source on GitHub ↗
(parent ksuid.KSUID, author, message string, meta super.Value, retries int)

Source from the content-addressed store, hash-verified

22}
23
24func NewObject(parent ksuid.KSUID, author, message string, meta super.Value, retries int) *Object {
25 commit := ksuid.New()
26 o := &Object{
27 Commit: commit,
28 Parent: parent,
29 }
30 o.append(&Commit{
31 ID: commit,
32 Parent: parent,
33 Retries: uint8(retries),
34 Date: nano.Now(),
35 Author: author,
36 Message: message,
37 Meta: meta,
38 })
39 return o
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)

Callers 6

NewCommitObjectMethod · 0.70
RevertMethod · 0.70
NewAddsObjectFunction · 0.70
NewDeletesObjectFunction · 0.70
NewAddVectorsObjectFunction · 0.70
NewDeleteVectorsObjectFunction · 0.70

Calls 3

appendMethod · 0.95
NowFunction · 0.92
NewMethod · 0.80

Tested by

no test coverage detected