MCPcopy Create free account
hub / github.com/google/go-cloud / Next

Method Next

docstore/driver/driver.go:232–232  ·  view source on GitHub ↗

Next tries to get the next item in the query result and decodes into Document with the driver's codec. When there are no more results, it should return io.EOF. Once Next returns a non-nil error, it will never be called again.

(context.Context, Document)

Source from the content-addressed store, hash-verified

230 // When there are no more results, it should return io.EOF.
231 // Once Next returns a non-nil error, it will never be called again.
232 Next(context.Context, Document) error
233
234 // Stop terminates the iterator before Next return io.EOF, allowing any cleanup
235 // needed.

Callers 15

TestListIteratorFunction · 0.65
TestErrorsAreWrappedFunction · 0.65
TestBucketIsClosedFunction · 0.65
openOnceMethod · 0.65
ExampleBucket_ListFunction · 0.65
ExampleListObject_AsFunction · 0.65
ExampleListOptionsFunction · 0.65
TestEscapeBucketRootFunction · 0.65
TestListAtRootFunction · 0.65
doListFunction · 0.65
iterToSetOfKeysFunction · 0.65

Implementers 7

DocumentIteratordocstore/query.go
docIteratordocstore/memdocstore/query.go
documentIteratordocstore/awsdynamodb/v2/query.go
sliceIteratordocstore/awsdynamodb/v2/query.go
highScoreSliceIteratordocstore/awsdynamodb/v2/dynamo_test.go
docIteratordocstore/gcpfirestore/query.go
docIteratordocstore/mongodocstore/query.go

Calls

no outgoing calls

Tested by 15

TestListIteratorFunction · 0.52
TestErrorsAreWrappedFunction · 0.52
TestBucketIsClosedFunction · 0.52
ExampleBucket_ListFunction · 0.52
ExampleListObject_AsFunction · 0.52
ExampleListOptionsFunction · 0.52
TestEscapeBucketRootFunction · 0.52
TestListAtRootFunction · 0.52
clearCollectionFunction · 0.52
TestClosedErrorsFunction · 0.52
TestInvalidQueryFunction · 0.52