MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / IsIndex

Method IsIndex

x/keys.go:343–345  ·  view source on GitHub ↗

IsIndex returns whether the key is an index key.

()

Source from the content-addressed store, hash-verified

341
342// IsIndex returns whether the key is an index key.
343func (p ParsedKey) IsIndex() bool {
344 return (p.bytePrefix == DefaultPrefix || p.bytePrefix == ByteSplit) && p.ByteType == ByteIndex
345}
346
347// IsSchema returns whether the key is a schema key.
348func (p ParsedKey) IsSchema() bool {

Callers 10

StringMethod · 0.95
IsOfTypeMethod · 0.95
ToBackupKeyMethod · 0.95
printKeysFunction · 0.80
runFunction · 0.80
TestIndexKeyFunction · 0.80
TestIndexKeyWithStartUidFunction · 0.80
sortWithIndexFunction · 0.80
tokensForTestFunction · 0.80
GetConflictKeyFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestIndexKeyFunction · 0.64
TestIndexKeyWithStartUidFunction · 0.64
tokensForTestFunction · 0.64