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

Method IsData

x/keys.go:318–320  ·  view source on GitHub ↗

IsData returns whether the key is a data key.

()

Source from the content-addressed store, hash-verified

316
317// IsData returns whether the key is a data key.
318func (p ParsedKey) IsData() bool {
319 return (p.bytePrefix == DefaultPrefix || p.bytePrefix == ByteSplit) && p.ByteType == ByteData
320}
321
322// IsReverse returns whether the key is a reverse key.
323func (p ParsedKey) IsReverse() bool {

Callers 15

IsOfTypeMethod · 0.95
ToBackupKeyMethod · 0.95
toListMethod · 0.80
uidToValFunction · 0.80
showAllPostingsAtFunction · 0.80
printKeysFunction · 0.80
runFunction · 0.80
VerifySnapshotFunction · 0.80
IsDropOpKeyFunction · 0.80
TestDataKeyFunction · 0.80
ToExportKvListFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestDataKeyFunction · 0.64