Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BatchNamer ¶
type PreFetchedValue ¶
PreFetchedValue is an optional interface for graph.Ref to indicate that quadstore has already loaded a value into memory.
func PreFetched ¶
func PreFetched(v quad.Value) PreFetchedValue
type Ref ¶
type Ref interface { // Key returns a dynamic type that is comparable according to the Go language specification. // The returned value must be unique for each receiver value. Key() interface{} }
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 of the primitives). In a very direct sort of graph, these could be pointers to structs, or merely quads, or whatever works best for the backing store.
These must be comparable, or return a comparable version on Key.
Click to show internal directories.
Click to hide internal directories.