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

Method Predicates

schema/schema.go:305–317  ·  view source on GitHub ↗

Predicates returns the list of predicates for given group

()

Source from the content-addressed store, hash-verified

303
304// Predicates returns the list of predicates for given group
305func (s *state) Predicates() []string {
306 if s == nil {
307 return nil
308 }
309
310 s.RLock()
311 defer s.RUnlock()
312 var out []string
313 for k := range s.predicate {
314 out = append(out, k)
315 }
316 return out
317}
318
319// Types returns the list of types.
320func (s *state) Types() []string {

Callers 5

getSchemaFunction · 0.80
handleRestoreProposalFunction · 0.80
deleteStalePredsFunction · 0.80
doStreamSnapshotFunction · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected