MCPcopy
hub / github.com/cayleygraph/cayley / Ref

Interface Ref

graph/values.go:20–24  ·  view source on GitHub ↗

Ref defines an opaque "quad store reference" type. However the backend wishes to implement it, a Ref is merely a token to a quad or a node that the backing store itself understands, and the base iterators pass around. For example, in a very traditional, graphd-style graph, these are int64s (guids o

Source from the content-addressed store, hash-verified

18//
19// These must be comparable, or return a comparable version on Key.
20type Ref interface {
21 // Key returns a dynamic type that is comparable according to the Go language specification.
22 // The returned value must be unique for each receiver value.
23 Key() interface{}
24}
25
26// Value is an alias for Ref.
27//

Callers 7

ToKeyFunction · 0.65
indexSizeMethod · 0.65
NextMethod · 0.65
NextMethod · 0.65
NextPathMethod · 0.65
resolveMethod · 0.65
ContainsMethod · 0.65

Implementers 7

fetchedValuegraph/values.go
QuadHashgraph/values.go
QuadIndexgraph/kv/indexing.go
Primitivegraph/proto/primitive.pb.go
qprimgraph/memstore/quadstore.go
Tokengraph/gaedatastore/quadstore.go
quadValuegraph/graphmock/graphmock.go

Calls

no outgoing calls

Tested by

no test coverage detected