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

Method IsReverse

x/keys.go:323–325  ·  view source on GitHub ↗

IsReverse returns whether the key is a reverse key.

()

Source from the content-addressed store, hash-verified

321
322// IsReverse returns whether the key is a reverse key.
323func (p ParsedKey) IsReverse() bool {
324 return (p.bytePrefix == DefaultPrefix || p.bytePrefix == ByteSplit) && p.ByteType == ByteReverse
325}
326
327// IsCountOrCountRev returns whether the key is a count or a count rev key.
328func (p ParsedKey) IsCountOrCountRev() bool {

Callers 12

IsOfTypeMethod · 0.95
ToBackupKeyMethod · 0.95
toListMethod · 0.80
addCountEntryMethod · 0.80
writeIndexMethod · 0.80
printKeysFunction · 0.80
runFunction · 0.80
TestReverseKeyFunction · 0.80
addMutationHelperMethod · 0.80
addMutationInternalMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestReverseKeyFunction · 0.64