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

Method String

x/keys.go:307–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

305}
306
307func (p ParsedKey) String() string {
308 if p.IsIndex() {
309 return fmt.Sprintf("UID: %v, Attr: %v, IsIndex: true, Term: %v", p.Uid, p.Attr, []byte(p.Term))
310 } else if p.IsCountOrCountRev() {
311 return fmt.Sprintf("UID: %v, Attr: %v, IsCount/Ref: true, Count: %v", p.Uid, p.Attr, p.Count)
312 } else {
313 return fmt.Sprintf("UID: %v, Attr: %v, Data key, prefix; %v, byte: %v", p.Uid, p.Attr, p.bytePrefix, p.ByteType)
314 }
315}
316
317// IsData returns whether the key is a data key.
318func (p ParsedKey) IsData() bool {

Callers

nothing calls this directly

Calls 2

IsIndexMethod · 0.95
IsCountOrCountRevMethod · 0.95

Tested by

no test coverage detected