MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / GetBucketById

Method GetBucketById

bucket_manager.go:118–124  ·  view source on GitHub ↗
(id core.BucketId)

Source from the content-addressed store, hash-verified

116}
117
118func (bm *BucketManager) GetBucketById(id core.BucketId) (*core.Bucket, error) {
119 if bucket, exist := bm.BucketInfoMapper[id]; exist {
120 return bucket, nil
121 } else {
122 return nil, ErrBucketNotExist
123 }
124}
125
126func (bm *BucketManager) GetBucketID(ds core.Ds, name core.BucketName) (core.BucketId, error) {
127 if bucket, err := bm.GetBucket(ds, name); err != nil {

Callers 11

IterateBucketsMethod · 0.80
sendUpdatedEntriesMethod · 0.80
mergeLegacyMethod · 0.80
parseDataFilesMethod · 0.80
loadHintFileMethod · 0.80
buildBTreeIdxMethod · 0.80
buildSetIdxMethod · 0.80
buildSortedSetIdxMethod · 0.80
buildListIdxMethod · 0.80
handleExpiredKeysMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected