MCPcopy
hub / github.com/dgraph-io/dgraph / SkipPredicate

Method SkipPredicate

x/keys.go:375–380  ·  view source on GitHub ↗

SkipPredicate returns the first key after the keys corresponding to the predicate of this key. Useful when iterating in the reverse order.

()

Source from the content-addressed store, hash-verified

373// SkipPredicate returns the first key after the keys corresponding to the predicate
374// of this key. Useful when iterating in the reverse order.
375func (p ParsedKey) SkipPredicate() []byte {
376 buf, prefixLen := generateKey(p.bytePrefix, p.Attr, 1)
377 AssertTrue(len(buf[prefixLen:]) == 1)
378 buf[prefixLen] = 0xFF
379 return buf
380}
381
382// TODO(Naman): Remove these functions as they are unused.
383

Callers 1

getPredicatesMethod · 0.80

Calls 2

generateKeyFunction · 0.70
AssertTrueFunction · 0.70

Tested by

no test coverage detected