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

Interface Scanner

graph/shape.go:6–14  ·  view source on GitHub ↗

Scanner is an iterator that lists all results sequentially, but not necessarily in a sorted order.

Source from the content-addressed store, hash-verified

4
5// Scanner is an iterator that lists all results sequentially, but not necessarily in a sorted order.
6type Scanner interface {
7 IteratorBase
8
9 // Next advances the iterator to the next value, which will then be available through
10 // the Result method. It returns false if no further advancement is possible, or if an
11 // error was encountered during iteration. Err should be consulted to distinguish
12 // between the two cases.
13 Next(ctx context.Context) bool
14}
15
16// Index is an index lookup iterator. It allows to check if an index contains a specific value.
17type Index interface {

Callers 8

ServeV1QueryMethod · 0.65
serveRawQuadsMethod · 0.65
serveNodesWithPropsMethod · 0.65
RunFunction · 0.65
NextMethod · 0.65
runQueryFunction · 0.65
TestSexpFunction · 0.65
NextMethod · 0.65

Implementers 15

mqlIteratorquery/mql/session.go
resultsquery/sexp/session.go
resultsquery/gizmo/gizmo.go
resultsquery/graphql/graphql.go
legacyItergraph/shape.go
allIteratorNextgraph/kv/all_iterator.go
quadIteratorNextgraph/kv/quad_iterator.go
iteratorNextgraph/sql/iterator.go
iteratorNextgraph/nosql/iterator.go
Enumeratorgraph/memstore/keys.go
allIteratorNextgraph/memstore/all_iterator.go
iteratorNextgraph/memstore/iterator.go

Calls

no outgoing calls

Tested by

no test coverage detected