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

Method ObjectPrefix

db/data/object.go:116–118  ·  view source on GitHub ↗

ObjectPrefix returns a prefix for the various objects that comprise a data object so they can all be deleted with the storage engine's DeleteByPrefix method.

(path *storage.URI)

Source from the content-addressed store, hash-verified

114// a data object so they can all be deleted with the storage engine's
115// DeleteByPrefix method.
116func (o Object) ObjectPrefix(path *storage.URI) *storage.URI {
117 return path.JoinPath(o.ID.String())
118}
119
120func (o Object) SequenceURI(path *storage.URI) *storage.URI {
121 return SequenceURI(path, o.ID)

Callers 1

RemoveMethod · 0.95

Calls 2

JoinPathMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected