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

Method ObjectExists

db/pool.go:213–215  ·  view source on GitHub ↗

XXX this is inefficient but is only meant for interactive queries...?

(ctx context.Context, id ksuid.KSUID)

Source from the content-addressed store, hash-verified

211
212// XXX this is inefficient but is only meant for interactive queries...?
213func (p *Pool) ObjectExists(ctx context.Context, id ksuid.KSUID) (bool, error) {
214 return p.engine.Exists(ctx, data.SequenceURI(p.DataPath, id))
215}
216
217func (p *Pool) Vacate(ctx context.Context, ts nano.Ts, dryrun bool) ([]ksuid.KSUID, error) {
218 if !dryrun {

Callers 1

LookupTagsMethod · 0.80

Calls 2

SequenceURIFunction · 0.92
ExistsMethod · 0.65

Tested by

no test coverage detected