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

Interface Iterator

query/session.go:38–50  ·  view source on GitHub ↗

Iterator for query results.

Source from the content-addressed store, hash-verified

36
37// Iterator for query results.
38type Iterator interface {
39 // Next advances the iterator to the next value, which will then be available through
40 // the Result method. It returns false if no further advancement is possible, or if an
41 // error was encountered during iteration. Err should be consulted to distinguish
42 // between the two cases.
43 Next(ctx context.Context) bool
44 // Results returns the current result. The type depends on the collation mode of the query.
45 Result() interface{}
46 // Err returns any error that was encountered by the Iterator.
47 Err() error
48 // Close the iterator and do internal cleanup.
49 Close() error
50}
51
52// Collation of results.
53type Collation int

Callers 40

ServeV1QueryMethod · 0.65
serveRawQuadsMethod · 0.65
serveNodesWithPropsMethod · 0.65
RunFunction · 0.65
runQueryFunction · 0.65
TestSexpFunction · 0.65
runQueryGetTagFunction · 0.65
TestIssue160Function · 0.65
ServeV1QueryMethod · 0.65
serveNodesWithPropsMethod · 0.65
RunFunction · 0.65
ReplFunction · 0.65

Implementers 5

legacyItergraph/shape.go
Int64graph/iterator/iterator_test.go
Nullgraph/iterator/iterator.go
Errorgraph/iterator/iterator.go
Iteratorgraph/gaedatastore/iterator.go

Calls

no outgoing calls

Tested by

no test coverage detected