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

Function MatchForRange

internal/utils/utils.go:61–70  ·  view source on GitHub ↗
(pattern, bucket string, f func(bucket string) bool)

Source from the content-addressed store, hash-verified

59}
60
61func MatchForRange(pattern, bucket string, f func(bucket string) bool) (end bool, err error) {
62 match, err := filepath.Match(pattern, bucket)
63 if err != nil {
64 return true, err
65 }
66 if match && !f(bucket) {
67 return true, nil
68 }
69 return false, nil
70}
71
72func UvarintSize(x uint64) int {
73 i := 0

Callers 5

IterateBucketsMethod · 0.92
LKeysMethod · 0.92
ZKeysMethod · 0.92
SKeysMethod · 0.92
TestMatchForRangeFunction · 0.92

Calls 1

MatchMethod · 0.65

Tested by 1

TestMatchForRangeFunction · 0.74