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

Method IsCountOrCountRev

x/keys.go:328–330  ·  view source on GitHub ↗

IsCountOrCountRev returns whether the key is a count or a count rev key.

()

Source from the content-addressed store, hash-verified

326
327// IsCountOrCountRev returns whether the key is a count or a count rev key.
328func (p ParsedKey) IsCountOrCountRev() bool {
329 return p.IsCount() || p.IsCountRev()
330}
331
332// IsCount returns whether the key is a count key.
333func (p ParsedKey) IsCount() bool {

Callers 7

StringMethod · 0.95
IsOfTypeMethod · 0.95
printKeysFunction · 0.80
runFunction · 0.80
TestCountKeyFunction · 0.80
TestCountKeyWithStartUidFunction · 0.80
GetConflictKeyFunction · 0.80

Calls 2

IsCountMethod · 0.95
IsCountRevMethod · 0.95

Tested by 2

TestCountKeyFunction · 0.64
TestCountKeyWithStartUidFunction · 0.64