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

Struct documentIterator

docstore/awsdynamodb/v2/query.go:462–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462type documentIterator struct {
463 qr *queryRunner // the query runner
464 items []map[string]dyn2Types.AttributeValue // items from the last query
465 curr int // index of the current item in items
466 offset int // number of items to skip
467 limit int // number of items to return
468 count int // number of items returned
469 last map[string]dyn2Types.AttributeValue // lastEvaluatedKey from the last query
470 asFunc func(i any) bool // for As
471}
472
473func (it *documentIterator) Next(ctx context.Context, doc driver.Document) error {
474 // Skip the first 'n' documents where 'n' is the offset.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected