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

Method IsType

x/keys.go:353–355  ·  view source on GitHub ↗

IsType returns whether the key is a type key.

()

Source from the content-addressed store, hash-verified

351
352// IsType returns whether the key is a type key.
353func (p ParsedKey) IsType() bool {
354 return p.bytePrefix == ByteType
355}
356
357// IsOfType checks whether the key is of the given type.
358func (p ParsedKey) IsOfType(typ byte) bool {

Callers 7

ToBackupKeyMethod · 0.95
TestTypeKeyFunction · 0.80
WriteBackupMethod · 0.80
processReqChMethod · 0.80
doStreamSnapshotFunction · 0.80
readSchemaFunction · 0.80
WriteMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestTypeKeyFunction · 0.64