MCPcopy Create free account
hub / github.com/distributedio/titan / Valid

Method Valid

db/set.go:88–90  ·  view source on GitHub ↗

Valid judgies whether the key directed by iter has the same prifix

()

Source from the content-addressed store, hash-verified

86
87// Valid judgies whether the key directed by iter has the same prifix
88func (siter *SetIter) Valid() bool {
89 return siter.Iter.Key().HasPrefix(siter.Prefix)
90}
91
92//newSet create new Set object
93func newSet(txn *Transaction, key []byte) *Set {

Callers 15

deletePrefixFunction · 0.80
doExpireFunction · 0.80
SUnionFunction · 0.80
SInterFunction · 0.80
SDiffFunction · 0.80
SMembersMethod · 0.80
SPopMethod · 0.80
HGetAllMethod · 0.80
HScanMethod · 0.80
doGCFunction · 0.80
KeysMethod · 0.80
RandomKeyMethod · 0.80

Calls

no outgoing calls

Tested by 1

clearGCDataFunction · 0.64